public void DivisionTest(double first, double second, double expected) { DoubleArgCalculator calculator = new Division(); double result = calculator.Calculate(first, second); Assert.AreEqual(expected, result, 0.1); }
public void DivisionByZero() { DoubleArgCalculator calculator = new Division(); Assert.Throws<Exception>(() => calculator.Calculate(12, 0)); }