예제 #1
0
 public void FindNthRootTest_ArgumentOutOfRangeException(double number, int degree, double precision)
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => FindNthRooter.FindNthRoot(number, degree, precision));
 }
예제 #2
0
 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));
 }