示例#1
0
 private static void CheckNoResultsSearch(StringSearcher <int> searcher, ITsString tss)
 {
     Assert.AreEqual(0, searcher.Search(0, tss).Count());
 }
示例#2
0
 private static void CheckSearch(StringSearcher <int> searcher, ITsString tss, int[] expectedResults)
 {
     Assert.AreEqual(expectedResults.Length, searcher.Search(0, tss).Intersect(expectedResults).Count());
 }