public void FindNthRootTest_ArgumentOutOfRangeException(double number, int degree, double precision) { Assert.Throws <ArgumentOutOfRangeException>(() => FindNthRooter.FindNthRoot(number, degree, precision)); }
public void FindNthRootTest1(double number, int degree, double precision, double result) { Assert.AreEqual(result, FindNthRooter.FindNthRoot(number, degree, precision), Math.Pow(10, 2 - precision.ToString().Length)); }