Assert.AreEqual(4,horizontalDerivatives.Length,"Incorrect number of points with derivative value equal to 0");
Assert.IsTrue(horizontalDerivatives[0]>=-3&&horizontalDerivatives[0]<=-2,"Spline returns wrong t value: "+horizontalDerivatives[0]+" for first point");
Assert.IsTrue(horizontalDerivatives[1]>=-1&&horizontalDerivatives[1]<=0,"Spline returns wrong t value: "+horizontalDerivatives[1]+" for second point");
Assert.IsTrue(horizontalDerivatives[2]>=0&&horizontalDerivatives[2]<=1,"Spline returns wrong t value: "+horizontalDerivatives[2]+" for third point");
Assert.IsTrue(horizontalDerivatives[3]>=2&&horizontalDerivatives[3]<=3,"Spline returns wrong t value: "+horizontalDerivatives[3]+" for fourth point");
Console.WriteLine("GetHorizontalDerivativeTValues checked out ok for cubic spline.");
}
/// <summary>
/// Tests that the min and max values for the natural spline are correct