Browse Source

UnitTestNode should subscribe test events on create

Fix no result color displayed on tree node if do not perform expand-collapse-expand actions.
pull/419/head
Linquize 11 years ago
parent
commit
56c0e48730
  1. 4
      src/AddIns/Analysis/UnitTesting/Pad/UnitTestNode.cs

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

@ -37,6 +37,10 @@ namespace ICSharpCode.UnitTesting @@ -37,6 +37,10 @@ namespace ICSharpCode.UnitTesting
if (test == null)
throw new ArgumentNullException("test");
this.test = test;
if (IsVisible) {
test.DisplayNameChanged += test_NameChanged;
test.ResultChanged += test_ResultChanged;
}
}
protected override void OnIsVisibleChanged()

Loading…
Cancel
Save