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