public void CalculateTest(double firstValue, double secondValue, double expected) { var calculator = new Substract(); var actualResult = calculator.Calculate(firstValue, secondValue); Assert.AreEqual(expected, actualResult); }
public void Calculate(double firstInput, double secondInput, double output) { var calculator = new Substract(); var testResult = calculator.Calculate(firstInput, secondInput); var result = output; Assert.AreEqual(testResult, result); }