Ejemplo n.º 1
0
 public void TestFind()
 {
     FindLineOptions o = new FindLineOptions("Woot", true, false);
     var f = new LineMatcher(o);
     var s = new List<Match>(f.Filter(files_in_files1));
     Assert.Equal(1, s.Count);
 }
Ejemplo n.º 2
0
        public void Find()
        {
            var files = new FileMatcher(fileOptions).Filter().AsCounted();
            var matches = new LineMatcher(lineOptions).Filter(files).AsCounted();

            IOutputMatches h = new HtmlOutputter(lineOptions.Pattern, fileOptions.Directory, files, matches);
            h.OutputHeader();
            foreach (var match in matches)
                h.OutputMatch(match);
            h.OutputFooter();
        }