private static bool MatchesFilter(string content, string tagList)
        {
            var page       = new StubStoryTestPage(content);
            var testparser = new TagFilter(tagList);

            return(testparser.Matches(page));
        }
Exemplo n.º 2
0
 private static void TestFilter(string name, TagFilter filter, ICollection tags)
 {
     Console.WriteLine(name);
     foreach (Gen2.TagData td in tags)
     {
         if ((null == filter) || (filter.Matches(td)))
         {
             Console.WriteLine(td);
             //String.Format("PC:{0} EPC:{1} CRC:{2}",
             //    ByteFormat.ToHex(td.PcBytes),
             //    ByteFormat.ToHex(td.EpcBytes),
             //    ByteFormat.ToHex(td.CrcBytes)
             //    ));
         }
     }
     Console.WriteLine();
 }