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