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