public void AbsMethodTest(double x, double expected) { var actualValue = calculator.Abs(x); Assert.AreEqual(expected, actualValue, _tolerance); }
public void PositiveAbsTests(double initValue, double expectedValue) { Assert.AreEqual(calc.Abs(initValue), expectedValue); }