public static void SlopePolar(double thetaRadians, double radius, double radiusPrime, double expected) { double result = GeometryLibrary.SlopePolar(thetaRadians, radius, radiusPrime); Assert.AreEqual(expected, result, Tolerance); }
public static void SlopePolar_Throws_DivideByZeroException(double thetaRadians, double radius, double radiusPrime) { Assert.Throws <DivideByZeroException>(() => GeometryLibrary.SlopePolar(thetaRadians, radius, radiusPrime)); }