Exemplo n.º 1
0
        public void AddTestFailureClassAfterAllTestsPassed()
        {
            AllTestClassesPass();

            FakeTest testClass4 = new FakeTest();

            testClass4.Result = TestResultType.Failure;
            testCollection.Add(testClass4);

            Assert.AreEqual(TestResultType.Failure, testCollection.CompositeResult);
        }
Exemplo n.º 2
0
        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;
        }
		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;
		}
		public void AddTestFailureClassAfterAllTestsPassed()
		{
			AllTestClassesPass();
			
			FakeTest testClass4 = new FakeTest();
			testClass4.Result = TestResultType.Failure;
			testCollection.Add(testClass4);

			Assert.AreEqual(TestResultType.Failure, testCollection.CompositeResult);
		}