コード例 #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);
        }
コード例 #2
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);
        }
コード例 #3
0
        public virtual void DoublePointTwoParamConstructorTest()
        {
            DoublePoint dp = new DoublePoint(1.23, 5.34);

            PointTest.AssertDoublePointFields(dp, 1.23, 5.34);
        }
コード例 #4
0
        public virtual void DoublePointDefaultConstructorTest()
        {
            DoublePoint dp = new DoublePoint();

            PointTest.AssertDoublePointFields(dp, 0, 0);
        }