public void CategoryFilter_BuildFromXml_MultipleCategories() { TestFilter filter = TestFilter.FromXml( "<filter><cat>A,B,C,Dummy,Another,X,Y,Z</cat></filter>"); Assert.That(filter, Is.TypeOf <CategoryFilter>()); Assert.That(filter.Match(dummyFixture)); Assert.That(filter.Match(anotherFixture)); Assert.False(filter.Match(yetAnotherFixture)); }
public void IdFilter_BuildFromXml_MultipleIds() { TestFilter filter = TestFilter.FromXml( string.Format("<filter><id>{0},{1}</id></filter>", dummyFixture.Id, anotherFixture.Id)); Assert.That(filter, Is.TypeOf <IdFilter>()); Assert.That(filter.Match(dummyFixture)); Assert.That(filter.Match(anotherFixture)); Assert.False(filter.Match(yetAnotherFixture)); }
public void SimpleNameFilter_BuildFromXml_MultipleTests() { TestFilter filter = TestFilter.FromXml( "<filter><tests><test>NUnit.Framework.Internal.TestFilterTests+DummyFixture</test><test>NUnit.Framework.Internal.TestFilterTests+AnotherFixture</test></tests></filter>"); Assert.That(filter, Is.TypeOf <SimpleNameFilter>()); Assert.That(filter.Match(dummyFixture)); Assert.That(filter.Match(anotherFixture)); Assert.False(filter.Match(yetAnotherFixture)); }