public void AddTestFailureClassAfterAllTestsPassed() { AllTestClassesPass(); FakeTest testClass4 = new FakeTest(); testClass4.Result = TestResultType.Failure; testCollection.Add(testClass4); Assert.AreEqual(TestResultType.Failure, testCollection.CompositeResult); }
public void Init() { testClassesResultChanged = false; testCollection = new TestCollection(); // TestClass1. testClass1 = new FakeTest(); testCollection.Add(testClass1); // TestClass2. testClass2 = new FakeTest(); testCollection.Add(testClass2); // TestClass3. testClass3 = new FakeTest(); testCollection.Add(testClass3); testCollection.PropertyChanged += testCollection_PropertyChanged; }