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);
        }
Beispiel #2
0
        public virtual void DottedLineWithSetWidthAndGapTest01()
        {
            DottedLine dottedLine = new DottedLine(10, 15);

            NUnit.Framework.Assert.AreEqual(ColorConstants.BLACK, dottedLine.GetColor());
            NUnit.Framework.Assert.AreEqual(10, dottedLine.GetLineWidth(), 0.0001);
            NUnit.Framework.Assert.AreEqual(15, dottedLine.GetGap(), 0.0001);
        }
Beispiel #3
0
        public virtual void DefaultDottedLineTest01()
        {
            DottedLine dottedLine = new DottedLine();

            NUnit.Framework.Assert.AreEqual(ColorConstants.BLACK, dottedLine.GetColor());
            NUnit.Framework.Assert.AreEqual(1, dottedLine.GetLineWidth(), 0.0001);
            NUnit.Framework.Assert.AreEqual(4, dottedLine.GetGap(), 0.0001);
        }