public virtual void CanvasImmediateFlushConstructorTest()
        {
            PdfDocument pdf       = new PdfDocument(new PdfWriter(new ByteArrayOutputStream()));
            PdfPage     page      = pdf.AddNewPage();
            PdfCanvas   pdfCanvas = new PdfCanvas(page.GetLastContentStream(), page.GetResources(), pdf);
            Rectangle   rectangle = new Rectangle(0, 0);

            iText.Layout.Canvas canvas = new iText.Layout.Canvas(pdfCanvas, rectangle, false);
            NUnit.Framework.Assert.AreEqual(pdfCanvas.GetDocument(), canvas.GetPdfDocument());
            NUnit.Framework.Assert.IsFalse(canvas.immediateFlush);
        }