Example #1
0
        public void VerifyBreakChunk()
        {
            Break             br = new Break();
            WorkerContextImpl workerContextImpl = new WorkerContextImpl();
            CssAppliersImpl   cssAppliers       = new CssAppliersImpl();

            workerContextImpl.Put(typeof(HtmlPipeline).FullName, new HtmlPipelineContext(cssAppliers));
            br.SetCssAppliers(cssAppliers);
            IList <IElement> end = br.End(workerContextImpl, new Tag("span"), null);

            Assert.AreEqual(Chunk.NEWLINE.Content, end[0].Chunks[0].Content);
        }