public void CalculateArithmeticMeanTest(double firstValue, double secondValue, double expected) { ITwoArgumentsCalculator calculator = new ArithmeticMean(); double result = calculator.Calculate(3, 5); Assert.AreEqual(4, result); }
public void CalculatorTest( double firstValue, double secondValue, double expected) { var calculator = new ArithmeticMean(); var actualResult = calculator.Calculate(firstValue, secondValue); Assert.AreEqual(expected, actualResult); }
public double Calculate_TestCases_ShouldCalculateCorrectly(double[] numbers) { return(unitUnderTest.Calculate(numbers)); }