public void GeometricMeanTest(double firstValue, double secondValue, double expected) { var calculator = new GeometricMeanCalculator(); var actualResult = calculator.Calculate(firstValue, secondValue); Assert.AreEqual(expected, actualResult); }
public void ExceptionTest() { var calculator = new GeometricMeanCalculator(); Assert.Throws <Exception>(() => calculator.Calculate(-1, -1)); }