Beispiel #1
0
        public virtual void DottedLineSettersTest01()
        {
            DottedLine dottedLine = new DottedLine(15);

            NUnit.Framework.Assert.AreEqual(ColorConstants.BLACK, dottedLine.GetColor());
            NUnit.Framework.Assert.AreEqual(15, dottedLine.GetLineWidth(), 0.0001);
            NUnit.Framework.Assert.AreEqual(4, dottedLine.GetGap(), 0.0001);
            dottedLine.SetColor(ColorConstants.RED);
            NUnit.Framework.Assert.AreEqual(ColorConstants.RED, dottedLine.GetColor());
            dottedLine.SetLineWidth(10);
            NUnit.Framework.Assert.AreEqual(10, dottedLine.GetLineWidth(), 0.0001);
            dottedLine.SetGap(5);
            NUnit.Framework.Assert.AreEqual(5, dottedLine.GetGap(), 0.0001);
        }