public void CalculateTest(double arOne, double expected) { var calculator = new LogarithmN(); var actualResult = calculator.Calculate(arOne); Assert.AreEqual(expected, actualResult, 0.001); }
public void NegativeCalculateTest() { var calculator = new LogarithmN(); Assert.Throws <System.Exception>(() => calculator.Calculate(-4)); }