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