public void CategoryFilter_SingleCategoryConstructor() { var filter = new CategoryFilter("Dummy"); Assert.False(filter.IsEmpty); Assert.That(filter.Match(dummyFixture)); Assert.False(filter.Match(anotherFixture)); }
public void SimpleCategoryFilter_MultipleCategoryConstructor() { var filter = new CategoryFilter(new string[] { "Dummy", "Another" }); Assert.False(filter.IsEmpty); Assert.That(filter.Match(dummyFixture)); Assert.That(filter.Match(anotherFixture)); Assert.False(filter.Match(yetAnotherFixture)); }
public void CategoryFilter_AddCategories() { var filter = new CategoryFilter(); filter.AddCategory("Dummy"); filter.AddCategory("Another"); Assert.False(filter.IsEmpty); Assert.That(filter.Match(dummyFixture)); Assert.That(filter.Match(anotherFixture)); Assert.False(filter.Match(yetAnotherFixture)); }