public void CalculateTest(double first, double expected) { var calculator = new Logarithm2(); var actualResult = calculator.Calculate(first); Assert.AreEqual(expected, actualResult, 0.0001); }
public void ErrorTest() { var calculator = new Logarithm2(); Assert.Throws <Exception>(() => calculator.Calculate(-1)); }