Exemplo n.º 1
0
        public override ISvgNodeRenderer CreateDeepCopy()
        {
            NoDrawOperationSvgNodeRenderer copy = new NoDrawOperationSvgNodeRenderer();

            DeepCopyAttributesAndStyles(copy);
            return(copy);
        }
        public virtual void DeepCopyTest()
        {
            NoDrawOperationSvgNodeRenderer expected = new NoDrawOperationSvgNodeRenderer();

            expected.SetAttribute(SvgConstants.Attributes.FILL, "blue");
            ISvgNodeRenderer actual = expected.CreateDeepCopy();

            NUnit.Framework.Assert.AreEqual(expected, actual);
        }
 public virtual void DontDrawTest()
 {
     NUnit.Framework.Assert.That(() => {
         NoDrawOperationSvgNodeRenderer renderer = new NoDrawOperationSvgNodeRenderer();
         renderer.DoDraw(null);
     }
                                 , NUnit.Framework.Throws.InstanceOf <NotSupportedException>().With.Message.EqualTo(SvgLogMessageConstant.DRAW_NO_DRAW))
     ;
 }