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