Exemple #1
0
        public virtual void LongPointCopyConstructorTest()
        {
            IntPoint lp   = new IntPoint(1, 5);
            IntPoint copy = new IntPoint(lp);

            PointTest.AssertLongPointFields(copy, 1, 5);
        }
Exemple #2
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);
        }
Exemple #3
0
        public virtual void LongPointTwoDoubleParamConstructorTest()
        {
            IntPoint lp = new IntPoint(1.23, 5.34);

            PointTest.AssertLongPointFields(lp, 1, 5);
        }
Exemple #4
0
        public virtual void LongPointDefaultConstructorTest()
        {
            IntPoint lp = new IntPoint();

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