Example #1
0
        public void Overlaps_WPoint_PointIsOutsideLineSegment()
        {
            //arrange
            Geometry.MarginOfError   = 0.001;
            Geometry.CoordinatePlane = Geometry.CoordinatePlanes.Screen;
            WLine  line  = new WLine(new WPoint(1, 0), new WPoint(5, 0));
            WPoint point = new WPoint(0, 0);
            //act
            bool result = line.Overlaps(point);

            //assert
            Assert.IsTrue(result);
        }