コード例 #1
0
        public double Test_FindNthRoot(double number, int degree, double precision)
        {
            var result = CreatingTypes.FindNthRoot(number, degree, precision);

            return(result);
        }
コード例 #2
0
        public void FindNthRoot_Number_Degree_Precision_ArgumentOutOfRangeException(double number, int degree, double precision)
        {
            var ex = Assert.Throws <System.ArgumentException>(() => { CreatingTypes.FindNthRoot(number, degree, precision); });

            Assert.AreEqual("Value does not fall within the expected range.", ex.Message);
        }
コード例 #3
0
 public void FindNthRootTest2()
 {
     Assert.AreEqual(CreatingTypes.FindNthRoot(-0.008, 3, 0.1), -0.2);
 }
コード例 #4
0
 public double FindNthRoot_Test(double number, int degree, double precision)
 {
     return(CreatingTypes.FindNthRoot(number, degree, precision));
 }
コード例 #5
0
 public void FindNthRootTest1()
 {
     Assert.AreEqual(CreatingTypes.FindNthRoot(1, 5, 0.0001), 1);
 }