public virtual void TestEmptyClipPathRendererNotDrawn()
        {
            ClipPathSvgNodeRenderer clipRenderer = new ClipPathSvgNodeRenderer();

            clipRenderer.SetAttributesAndStyles(new Dictionary <String, String>());
            clipRenderer.Draw(sdc);
            NUnit.Framework.Assert.AreEqual(0, cv.GetContentStream().GetBytes().Length);
        }
        public virtual void TestRectClipPathRenderer()
        {
            ClipPathSvgNodeRenderer clipRenderer = new ClipPathSvgNodeRenderer();

            clipRenderer.SetAttributesAndStyles(new Dictionary <String, String>());
            RectangleSvgNodeRenderer rectRenderer = new RectangleSvgNodeRenderer();

            rectRenderer.SetAttribute(SvgConstants.Attributes.WIDTH, "400");
            rectRenderer.SetAttribute(SvgConstants.Attributes.HEIGHT, "400");
            clipRenderer.AddChild(rectRenderer);
            clipRenderer.Draw(sdc);
            NUnit.Framework.Assert.AreEqual("q\n% rect\n0 0 300 300 re\nW\nn\nQ\n", iText.IO.Util.JavaUtil.GetStringForBytes
                                                (cv.GetContentStream().GetBytes()));
        }