Esempio n. 1
0
        public void CalculateArithmeticMeanTest(double firstValue, double secondValue, double expected)
        {
            ITwoArgumentsCalculator calculator = new ArithmeticMean();
            double result = calculator.Calculate(3, 5);

            Assert.AreEqual(4, result);
        }
Esempio n. 2
0
        public void CalculatorTest(
            double firstValue,
            double secondValue,
            double expected)
        {
            var calculator   = new ArithmeticMean();
            var actualResult = calculator.Calculate(firstValue, secondValue);

            Assert.AreEqual(expected, actualResult);
        }
Esempio n. 3
0
 public double Calculate_TestCases_ShouldCalculateCorrectly(double[] numbers)
 {
     return(unitUnderTest.Calculate(numbers));
 }