示例#1
0
        public void MulitpleTestCaseIdMatch()
        {
            OrFilter filter = new OrFilter(CreateIdFilter(_mock1), CreateIdFilter(_mock3));

            Assert.IsTrue(filter.Pass(_mock1), "Filter did not pass MockTest1");
            Assert.IsFalse(filter.Pass(_mock2), "Filter should not have passed MockTest2");
            Assert.IsTrue(filter.Pass(_mock3), "Filter did not pass MockTest3");
            Assert.IsFalse(filter.Pass(_explicitTest), "Filter should not have passed ExplicitlyRunTest");
            Assert.IsTrue(filter.Pass(_fixture), "Filter did not pass MockTestFixture");
            Assert.IsTrue(filter.Pass(_suite), "Filter did not pass TopLevelSuite");
        }