示例#1
0
        private static void RunCustomParagraphAndRendererTest(String fileName, bool orphans)
        {
            String outPdf = destinationFolder + fileName + ".pdf";
            String cmpPdf = sourceFolder + "cmp_" + fileName + ".pdf";

            OrphansWidowsTest.CustomParagraph customParagraph = new OrphansWidowsTest.CustomParagraph();
            if (orphans)
            {
                customParagraph.SetOrphansControl(new ParagraphOrphansControl(3));
            }
            else
            {
                customParagraph.SetWidowsControl(new ParagraphWidowsControl(3, 1, false));
            }
            OrphansWidowsTestUtil.ProduceOrphansWidowsTestCase(outPdf, 2, orphans, customParagraph, false);
            NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, cmpPdf, destinationFolder, "diff_"
                                                                             ));
        }
示例#2
0
 public CustomParagraphRenderer(OrphansWidowsTest.CustomParagraph modelElement)
     : base(modelElement)
 {
 }