Exemple #1
0
        public void RepeatSuccess()
        {
            Assert.IsNotNull(successMethod);
            RepeatSuccessFixture fixture = new RepeatSuccessFixture();
            TestResult           result  = RunTestOnFixture(fixture);

            Assert.IsTrue(result.IsSuccess);
            Assert.AreEqual(3, fixture.SetupCount);
            Assert.AreEqual(3, fixture.TeardownCount);
            Assert.AreEqual(3, fixture.Count);
        }
        public void RepeatSuccess()
        {
            Assert.IsNotNull(successMethod);
            RepeatSuccessFixture fixture = new RepeatSuccessFixture();
            ITestResult          result  = TestBuilder.RunTestFixture(fixture);

            Assert.IsTrue(result.ResultState == ResultState.Success);
            Assert.AreEqual(1, fixture.FixtureSetupCount);
            Assert.AreEqual(1, fixture.FixtureTeardownCount);
            Assert.AreEqual(3, fixture.SetupCount);
            Assert.AreEqual(3, fixture.TeardownCount);
            Assert.AreEqual(3, fixture.Count);
        }