public void ExceptionTest(double a, int n, double eps) { Assert.Throws <ArgumentException>(() => FindSqrt.FindNthRoot(a, n, eps)); }
public void Test(double a, int n, double eps, double expectedResult) { Assert.AreEqual(expectedResult, FindSqrt.FindNthRoot(a, n, eps), eps); }