public static void SetLimitByY(double yCoordinate, double xLimitExpected, double yLimitExpected)
        {
            curveLimit.SetLimitByY(yCoordinate);

            CartesianCoordinate limitExpected = new CartesianCoordinate(xLimitExpected, yLimitExpected, Tolerance);

            Assert.AreEqual(limitExpected, curveLimit.Limit);
        }
        public static void SetLimitByY_Throws_NotSupportedException_if_Curve_Not_In_Cartesian_Coordinates()
        {
            CurveLimit nonCartesianLimit = new CurveLimit(new NonCartesianCurve());

            Assert.Throws <NotSupportedException>(() => nonCartesianLimit.SetLimitByY(1));
        }