public void LnZeroTest() { LnCalculator calculator = new LnCalculator(); Assert.Throws<Exception>(() => calculator.Calculator(0)); }
public void LnTest(double first, double expected) { IOneArgumentsCalculator calculator = new LnCalculator(); double result = calculator.Calculator(first); Assert.AreEqual(expected, result, 0.0001); }