public void ExplicitMatch_SingleId() { var filter = new IdFilter(_dummyFixture.Id); Assert.That(filter.IsExplicitMatch(_topLevelSuite)); Assert.That(filter.IsExplicitMatch(_dummyFixture)); Assert.False(filter.IsExplicitMatch(_dummyFixture.Tests[0])); Assert.False(filter.IsExplicitMatch(_anotherFixture)); }
public void ExplicitMatch_MultipleIds() { var filter = new IdFilter(new string[] { _dummyFixture.Id, _anotherFixture.Id }); Assert.That(filter.IsExplicitMatch(_topLevelSuite)); Assert.That(filter.IsExplicitMatch(_dummyFixture)); Assert.False(filter.IsExplicitMatch(_dummyFixture.Tests[0])); Assert.True(filter.IsExplicitMatch(_anotherFixture)); Assert.False(filter.IsExplicitMatch(_anotherFixture.Tests[0])); Assert.False(filter.IsExplicitMatch(_yetAnotherFixture)); }