public void LogXYTest(double firstValue, double secondValue, double expected) { var calculator = new LogXY(); var actualResult = calculator.Calculate(firstValue, secondValue); Assert.AreEqual(expected, actualResult); }
public void CalculatorTest() { var calculator = new LogXY(); Assert.Throws <Exception>(() => calculator.Calculate(-5, -1)); }
public void CalculationError() { var calculator = new LogXY(); Assert.Throws <Exception>(() => calculator.Calculate(-3, 1)); }