Beispiel #1
0
        public void CalculateTest(double firstValue, double secondValue, double expected)

        {
            var calculator = new AverageGeometrikCalculator();
            var result     = calculator.Calculate(firstValue, secondValue);

            Assert.AreEqual(expected, result, 0.0001);
        }
        public void CalculateTest()

        {
            ITwoArgumentsCalculator calculator = new AverageGeometrikCalculator();
            double result = calculator.Calculate(1, 2);

            Assert.AreEqual(1.4142, result, 0.0001);
        }