コード例 #1
0
 public void FindNthRoot_Number_Degree_Accuracy_ArgumentOutOfRangeException(double number, int degree,
                                                                            double accuracy)
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => NewtonMethodSqrt.FindNthRoot(number, degree, accuracy));
 }
コード例 #2
0
 public void FindNthRoot_Number_Degree_Accuracy(double number, int degree, double accuracy, double expected)
 {
     Assert.AreEqual(NewtonMethodSqrt.FindNthRoot(number, degree, accuracy), expected, accuracy);
 }