public void RepeatFailOnThird() { Assert.IsNotNull (failOnThirdMethod); RepeatFailOnThirdFixture fixture = new RepeatFailOnThirdFixture(); ITestResult result = TestBuilder.RunTestFixture(fixture); Assert.IsFalse(result.ResultState == ResultState.Success); Assert.AreEqual(3, fixture.SetupCount); Assert.AreEqual(3, fixture.TeardownCount); Assert.AreEqual(3, fixture.Count); }
public void RepeatFailOnThird() { Assert.IsNotNull (failOnThirdMethod); RepeatFailOnThirdFixture fixture = new RepeatFailOnThirdFixture(); TestResult result = RunTestOnFixture( fixture ); Assert.IsFalse(result.IsSuccess); Assert.AreEqual(3, fixture.SetupCount); Assert.AreEqual(3, fixture.TeardownCount); Assert.AreEqual(3, fixture.Count); }