public void LogXfromYByZeroTest() { var calc = new LogXfromY(); Assert.Throws <Exception>(() => calc.Calculate(1, 0)); Assert.Throws <Exception>(() => calc.Calculate(-3, 4)); }
public void LogXfromYTest(double first, double second, double expected) { var calc = new LogXfromY(); double result = calc.Calculate(first, second); Assert.AreEqual(expected, result); }