Inheritance: AbstractTagProcessor
Esempio n. 1
0
 virtual public void TestContentToChunk() {
     Anchor a = new Anchor();
     Tag t = new Tag("dummy");
     String content2 = "some content";
     WorkerContextImpl ctx = new WorkerContextImpl();
     HtmlPipelineContext htmlPipelineContext = new HtmlPipelineContext(null);
     ctx.Put(typeof (HtmlPipeline).FullName, htmlPipelineContext);
     a.SetCssAppliers(new CssAppliersImpl());
     IList<IElement> ct = a.Content(ctx, t, content2);
     Assert.AreEqual(content2, ct[0].Chunks[0].Content);
 }
Esempio n. 2
0
        virtual public void TestContentToChunk()
        {
            Anchor              a                   = new Anchor();
            Tag                 t                   = new Tag("dummy");
            String              content2            = "some content";
            WorkerContextImpl   ctx                 = new WorkerContextImpl();
            HtmlPipelineContext htmlPipelineContext = new HtmlPipelineContext(null);

            ctx.Put(typeof(HtmlPipeline).FullName, htmlPipelineContext);
            a.SetCssAppliers(new CssAppliersImpl());
            IList <IElement> ct = a.Content(ctx, t, content2);

            Assert.AreEqual(content2, ct[0].Chunks[0].Content);
        }