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