コード例 #1
0
        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));
        }
コード例 #2
0
 public bool Predicate(BenchmarkCase benchmarkCase)
 {
     if (globFilter == null)
     {
         return(true);
     }
     return(!globFilter.Predicate(benchmarkCase));
 }