public void SimpleTest(double firstarg, double expected) { Ln calc = new Ln(); double result = calc.Calc(firstarg); Assert.AreEqual(expected, result, 0.0001); }
public void BaseLogarithmOfZeroTest() { Ln calc = new Ln(); Assert.Throws <Exception>(() => calc.Calc(-3)); }