public void Subtraction(decimal x, decimal y, decimal result) { var calculation = new Subtract(x, y); var actual = calculation.Calculate(); Assert.Equal <decimal>(result, actual); }
public void CalculateTest(double firstArgument, double secondArgument, double result) { var calculator = new Subtract(); double testResult = calculator.Calculate(firstArgument, secondArgument); Assert.AreEqual(testResult, result); }