public void ExtensionFilter_Should_Return_True_When_ExtensionsMatch(string path, string extensionFilter, bool expected) { var filter = new PathFilterBuilder() .FileHasExtension(extensionFilter) .Build(); filter.Matches(path).Should().Be(expected); }
public void PathFilter_Should_Return_True_When_ExtensionsMatch(string path, string subPath, bool expected) { var filter = new PathFilterBuilder() .PathContains(subPath) .Build(); filter.Matches(path).Should().Be(expected); }
public void CompoundFilter_Should_Return_True_When_MatchIsFound(string path, string pathFilter, string fileFilter, bool expected) { var filter = new PathFilterBuilder() .PathContains(pathFilter) .FileHasExtension(fileFilter) .Build(); filter.Matches(path).Should().Be(expected); }