public void DivisionTest(double first, double second, double expected) { ITwoArgumentsCalculator calculator = new Division(); double result = calculator.Calculate(first, second); Assert.AreEqual(expected, result); }
public void DivisionByZeroTest() { ITwoArgumentsCalculator calculator = new Division(); Assert.Throws<Exception>(() => calculator.Calculate(1, 0)); }