Exemplo n.º 1
0
        public virtual void DoublePointCopyConstructorTest()
        {
            DoublePoint dp   = new DoublePoint(1.23, 5.34);
            DoublePoint copy = new DoublePoint(dp);

            PointTest.AssertDoublePointFields(copy, 1.23, 5.34);
        }
Exemplo n.º 2
0
        public virtual void LongPointCopyConstructorTest()
        {
            IntPoint lp   = new IntPoint(1, 5);
            IntPoint copy = new IntPoint(lp);

            PointTest.AssertLongPointFields(copy, 1, 5);
        }
Exemplo n.º 3
0
        public virtual void LongPointSetAndGetTest()
        {
            IntPoint temp = new IntPoint(1, 5);
            IntPoint lp   = new IntPoint();

            NUnit.Framework.Assert.AreEqual(1, temp.X);
            NUnit.Framework.Assert.AreEqual(5, temp.Y);
            lp.X = temp.X;
            lp.Y = temp.Y;
            PointTest.AssertLongPointFields(lp, 1, 5);
        }
Exemplo n.º 4
0
        public virtual void DoublePointSetAndGetTest()
        {
            DoublePoint temp = new DoublePoint(1.23, 5.34);
            DoublePoint dp   = new DoublePoint();

            NUnit.Framework.Assert.AreEqual(1.23, temp.X);
            NUnit.Framework.Assert.AreEqual(5.34, temp.Y);
            dp.X = temp.X;
            dp.Y = temp.Y;
            PointTest.AssertDoublePointFields(dp, 1.23, 5.34);
        }
Exemplo n.º 5
0
        public virtual void DoublePointTwoParamConstructorTest()
        {
            DoublePoint dp = new DoublePoint(1.23, 5.34);

            PointTest.AssertDoublePointFields(dp, 1.23, 5.34);
        }
Exemplo n.º 6
0
        public virtual void DoublePointDefaultConstructorTest()
        {
            DoublePoint dp = new DoublePoint();

            PointTest.AssertDoublePointFields(dp, 0, 0);
        }
Exemplo n.º 7
0
        public virtual void LongPointTwoDoubleParamConstructorTest()
        {
            IntPoint lp = new IntPoint(1.23, 5.34);

            PointTest.AssertLongPointFields(lp, 1, 5);
        }
Exemplo n.º 8
0
        public virtual void LongPointDefaultConstructorTest()
        {
            IntPoint lp = new IntPoint();

            PointTest.AssertLongPointFields(lp, 0, 0);
        }