コード例 #1
0
        public void NewtonMethod_DefaultAccuracy_PositiveTest(double number, double n, double ExpectedResult)
        {
            double actual   = NumberExtension.NewtonMethod(number, n);
            double expected = ExpectedResult;

            Assert.AreEqual(actual, expected, 0.0000001);
        }
コード例 #2
0
        public void NewtonMethod_CorrectInputValues_PositiveTest(double number, double n, double accuracy, double ExpectedResult)
        {
            double actual   = NumberExtension.NewtonMethod(number, n, accuracy);
            double expected = ExpectedResult;

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