public virtual void NoOpacitySet()
        {
            AbstractSvgNodeRenderer renderer = new CircleSvgNodeRenderer();

            renderer.SetAttribute(SvgConstants.Attributes.STROKE, "blue");
            renderer.Draw(sdc);
            PdfResources resources = cv.GetResources();

            NUnit.Framework.Assert.IsTrue(resources.GetResourceNames().IsEmpty());
        }
        public virtual void NoOpacitySetWithNoneFillRGBA()
        {
            AbstractSvgNodeRenderer renderer = new CircleSvgNodeRenderer();

            renderer.SetAttribute(SvgConstants.Attributes.FILL, SvgConstants.Values.NONE);
            renderer.Draw(sdc);
            PdfResources resources = cv.GetResources();

            NUnit.Framework.Assert.IsTrue(resources.GetResourceNames().IsEmpty());
        }
        public virtual void StrokeOpacitySetWithoutStrokeRGBA()
        {
            AbstractSvgNodeRenderer renderer = new CircleSvgNodeRenderer();

            renderer.SetAttribute(SvgConstants.Attributes.STROKE_OPACITY, "0.75");
            renderer.Draw(sdc);
            PdfResources resources = cv.GetResources();

            NUnit.Framework.Assert.IsTrue(resources.GetResourceNames().IsEmpty());
        }
        public virtual void NoOpacitySetWithFillRGBA()
        {
            AbstractSvgNodeRenderer renderer = new CircleSvgNodeRenderer();

            renderer.SetAttribute(SvgConstants.Attributes.FILL, "rgba(100,20,80,.75)");
            renderer.Draw(sdc);
            PdfResources resources = cv.GetResources();

            NUnit.Framework.Assert.AreEqual(1, resources.GetResourceNames().Count);
            PdfDictionary resDic = (PdfDictionary)resources.GetResourceObject(PdfName.ExtGState, DEFAULT_RESOURCE_NAME
                                                                              );

            NUnit.Framework.Assert.AreEqual(1, resDic.Size());
            NUnit.Framework.Assert.AreEqual(resDic.Get(FILL_OPAC), new PdfNumber(0.75));
        }
        public virtual void StrokeOpacitySetWithStroke()
        {
            AbstractSvgNodeRenderer renderer = new CircleSvgNodeRenderer();

            renderer.SetAttribute(SvgConstants.Attributes.STROKE_OPACITY, "0.75");
            renderer.SetAttribute(SvgConstants.Attributes.STROKE, "blue");
            renderer.Draw(sdc);
            PdfResources resources = cv.GetResources();

            NUnit.Framework.Assert.AreEqual(1, resources.GetResourceNames().Count);
            PdfDictionary resDic = (PdfDictionary)resources.GetResourceObject(PdfName.ExtGState, DEFAULT_RESOURCE_NAME
                                                                              );

            NUnit.Framework.Assert.AreEqual(1, resDic.Size());
            NUnit.Framework.Assert.AreEqual(resDic.Get(STROKE_OPAC), new PdfNumber(0.75));
        }