示例#1
0
        public void ShouldSucceed_One_Time_Out_Of_3_TestCaseSource()
        {
            InterTestContext.IncrementMethodTries("1_on_3_TestCaseSource");

            if (InterTestContext.InterTestCounts["1_on_3_TestCaseSource"] == 1)
            {
                Assert.Fail();
            }

            Assert.Pass();
        }
示例#2
0
        public void One_Failure_On_Three_Should_Pass()
        {
            InterTestContext.IncrementMethodTries("1_on_3");

            if (InterTestContext.InterTestCounts["1_on_3"] == 1)
            {
                Assert.Fail();
            }

            Assert.Pass();
        }
示例#3
0
        public void When_SucceedOnce_Pass()
        {
            InterTestContext.IncrementMethodTries("once");

            if (InterTestContext.InterTestCounts["once"] == 2)
            {
                Assert.Fail();
            }

            Assert.Pass();
        }
示例#4
0
        public void Inherited_ShouldSucceed_One_Time_Out_Of_3()
        {
            InterTestContext.IncrementMethodTries("inherited_1_on_3");

            if (InterTestContext.InterTestCounts["inherited_1_on_3"] == 1)
            {
                Assert.Fail();
            }

            Assert.Pass();
        }