示例#1
0
        public void CreateIgnoredTestCase()
        {
            MockTestFixture mockTestFixture = new MockTestFixture();

            NUnit.Core.TestCase testCase = TestCaseBuilder.Make(mockTestFixture, "MockTest4");
            Assert.AreEqual(1, testCase.CountTestCases());
            Assert.AreEqual(false, testCase.ShouldRun);
            Assert.AreEqual("ignoring this test method for now", testCase.IgnoreReason);
        }
示例#2
0
        public void RunIgnoredTestCase()
        {
            MockTestFixture mockTestFixture = new MockTestFixture();

            NUnit.Core.TestCase testCase = TestCaseBuilder.Make(mockTestFixture, "MockTest4");
            Assert.AreEqual(1, testCase.CountTestCases());

            TestResult       result     = testCase.Run(NullListener.NULL);
            ResultSummarizer summarizer = new ResultSummarizer(result);

            Assert.AreEqual(0, summarizer.ResultCount);
            Assert.AreEqual(1, summarizer.TestsNotRun);
        }