public void DivisionX(double firstValue, double expected) { var calculator = new DivisionX(); var actualResult = calculator.Calculate(firstValue); Assert.AreEqual(expected, actualResult); }
public void ErrorTest() { var calculator = new DivisionX(); Assert.Throws<Exception>((() => calculator.Calculate(0))); }