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); }
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); }