public void IsOnLine_ReturnsTrueIfPointIsOnAorB()
        {
            Coordinate         a      = new Coordinate(-10, 0);
            Coordinate         b      = new Coordinate(3, 2);
            Euclidean2DLocator target = new Euclidean2DLocator();

            Assert.True(target.IsOnLine(a, a, b, LineMode.Line));
            Assert.True(target.IsOnLine(b, a, b, LineMode.Line));
        }
        public void IsOnLine_ReturnsFalseIfPointDoEsNotLieOnAB(Coordinate c, Coordinate a, Coordinate b, LineMode mode)
        {
            Euclidean2DLocator target = new Euclidean2DLocator();

            Assert.False(target.IsOnLine(c, a, b, mode));
        }
        public void IsOnLine_ReturnsFalseIfPointLiesOnABAndModeIsLineSegment(Coordinate c, Coordinate a, Coordinate b)
        {
            Euclidean2DLocator target = new Euclidean2DLocator();

            Assert.False(target.IsOnLine(c, a, b, LineMode.LineSegment));
        }
        public void IsOnLine_ReturnsTrueIfPointLiesBetweenAAndB(Coordinate c, Coordinate a, Coordinate b, LineMode mode)
        {
            Euclidean2DLocator target = new Euclidean2DLocator();

            Assert.True(target.IsOnLine(c, a, b, mode));
        }