public void CalculateTest(double firstValue, double expected) { var calculator = new Abs(); var actualResult = calculator.Calculate(firstValue); Assert.AreEqual(expected, actualResult); }
public void CalculateTest(double argument, double result) { var calculator = new Abs(); var testResult = calculator.Calculate(argument); Assert.AreEqual(result, testResult); }
public void CalculateTest(double argument, double result, double accracy) { var testingFunction = new Abs(); var testResult = testingFunction.Calculate(argument); Assert.AreEqual(result, testResult, accracy); }