public static void GetLimitByCoordinate_Throws_ArgumentOutOfRangeException_if_Coordinate_Does_Not_Lie_On_Curve()
        {
            CartesianCoordinate     coordinate = new CartesianCoordinate(2, 2);
            ICurvePositionCartesian curve      = new LinearCurve(new CartesianCoordinate(-1, -2, Tolerance), new CartesianCoordinate(4, 3, Tolerance));

            Assert.Throws <ArgumentOutOfRangeException>(() => CurveLimit.GetLimitByCoordinate(coordinate, curve));
        }
        public static void GetLimitByCoordinate()
        {
            CartesianCoordinate     expectedLimit = new CartesianCoordinate(2, 1, Tolerance);
            ICurvePositionCartesian curve         = new LinearCurve(new CartesianCoordinate(-1, -2, Tolerance), new CartesianCoordinate(4, 3, Tolerance));

            CartesianCoordinate limit = CurveLimit.GetLimitByCoordinate(expectedLimit, curve);

            Assert.AreEqual(expectedLimit, limit);
        }