Beispiel #1
0
        public void GeometricMeanTest(double firstValue, double secondValue, double expected)
        {
            var calculator   = new GeometricMeanCalculator();
            var actualResult = calculator.Calculate(firstValue, secondValue);

            Assert.AreEqual(expected, actualResult);
        }
Beispiel #2
0
        public void ExceptionTest()
        {
            var calculator = new GeometricMeanCalculator();

            Assert.Throws <Exception>(() => calculator.Calculate(-1, -1));
        }