public void FindNthRoot_Number_Degree_Accuracy_ArgumentOutOfRangeException(double number, int degree, double accuracy) { Assert.Throws <ArgumentOutOfRangeException>(() => NewtonMethodSqrt.FindNthRoot(number, degree, accuracy)); }
public void FindNthRoot_Number_Degree_Accuracy(double number, int degree, double accuracy, double expected) { Assert.AreEqual(NewtonMethodSqrt.FindNthRoot(number, degree, accuracy), expected, accuracy); }