public void TheFilterIsCaseInsensitive(string pattern, bool expected) { var benchmarkCase = BenchmarkConverter.TypeToBenchmarks(typeof(TypeWithBenchmarks)).BenchmarksCases.Single(); var filter = new GlobFilter(new[] { pattern }); Assert.Equal(expected, filter.Predicate(benchmarkCase)); }
public bool Predicate(BenchmarkCase benchmarkCase) { if (globFilter == null) { return(true); } return(!globFilter.Predicate(benchmarkCase)); }