public void RemoveScanner()
        {
            CreateParser("");
            parser.RegisterScanners();
            parser.RemoveScanner(new FormScanner("", parser));
            IDictionary scanners = parser.Scanners;
            TagScanner  scanner  = (TagScanner)scanners["FORM"];

            Assert.IsNull(scanner, "shouldnt have found scanner");
        }
Пример #2
0
 /// <summary> Create a tag like the one provided.</summary>
 /// <param name="tag">The tag to emulate.
 /// </param>
 /// <param name="scanner">The scanner for this tag.
 /// </param>
 public TagNode(TagNode tag, TagScanner scanner) : this(tag.Page, tag.TagBegin, tag.TagEnd, tag.AttributesEx)
 {
     ThisScanner = scanner;
 }