Ejemplo n.º 1
0
 public void FindNthRoot_Number_Degree_Precision_ArgumentOutOfRangeException(double number, int degree,
                                                                             double precision, double expected)
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => FindNthRootClass.FindNthRoot(number, degree, precision));
 }
 public void FindNthRoot_ThrowArgumentException(double a, int n, double eps)
 {
     Assert.Throws <ArgumentException>(() => FindNthRootClass.FindNthRoot(a, n, eps));
 }
Ejemplo n.º 3
0
        public void FindNthRootTests(double number, int degree, double precision, double expected)
        {
            double actual = FindNthRootClass.FindNthRoot(number, degree, precision);

            Assert.AreEqual(expected, actual, precision);
        }
        public void FindNthRootTestCase(double a, int n, double eps, double expected)
        {
            double actual = FindNthRootClass.FindNthRoot(a, n, eps);

            Assert.AreEqual(actual, expected, eps);
        }