public void CalculateTest(double firstValue, double expected) { var calculator = new LogOfTwoCalculator(); var actualResult = calculator.Calculate(firstValue); Assert.AreEqual(expected, actualResult); }
public void NegativeLogOfTwoCalculatorTest() { var calculator = new LogOfTwoCalculator(); Assert.Throws <Exception>(() => calculator.Calculate(-1)); }