Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 56c0e48

Browse files
committed
UnitTestNode should subscribe test events on create
Fix no result color displayed on tree node if do not perform expand-collapse-expand actions.
1 parent 193975c commit 56c0e48

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/AddIns/Analysis/UnitTesting/Pad/UnitTestNode.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ public UnitTestNode(ITest test)
3737
if (test == null)
3838
throw new ArgumentNullException("test");
3939
this.test = test;
40+
if (IsVisible) {
41+
test.DisplayNameChanged += test_NameChanged;
42+
test.ResultChanged += test_ResultChanged;
43+
}
4044
}
4145

4246
protected override void OnIsVisibleChanged()

0 commit comments

Comments
 (0)