public void CalculateTest(double firstValue, double expected) { var calculator = new LogE(); var actualResult = calculator.Calculate(firstValue); Assert.AreEqual(expected, actualResult, 0.01); }
public void ExceptionLessThanZeroTest(double firstArgument) { var calculator = new LogE(); Assert.Throws <Exception>(() => calculator.Calculate(firstArgument)); }