コード例 #1
0
        public void EqualsTest()
        {
            var temp   = new SurfaceLib.Types.Point2D(2.0, 3.2);
            var actual = this._point.Equals(temp);

            Assert.IsFalse(actual);
        }
コード例 #2
0
        public void OperatorEqualTest()
        {
            var firstPoint  = new SurfaceLib.Types.Point2D(2.3, 1.5);
            var secondPoint = new SurfaceLib.Types.Point2D(2.3, 1.5);
            var actual      = firstPoint == secondPoint;

            Assert.IsTrue(actual);
        }
コード例 #3
0
        public void OperatorNotEqualTest()
        {
            var firstPoint  = new SurfaceLib.Types.Point2D(2.6, 1.3);
            var secondPoint = new SurfaceLib.Types.Point2D(0.4, 1.4);
            var actual      = firstPoint != secondPoint;

            Assert.IsTrue(actual);
        }
コード例 #4
0
 public void Initialize()
 {
     this._point = new SurfaceLib.Types.Point2D(4, 3.1);
 }