Ejemplo n.º 1
0
 public void DivisionTest(double first, double second, double expected)
 {
     ICalculate calculate = new Division();
     double result = calculate.Calculate(first, second);
     Assert.AreEqual(expected, result);
 }
Ejemplo n.º 2
0
 public void DivisionbyZeroTest()
 {
     ICalculate calculate = new Division();
     Assert.Throws<Exception>(() => calculate.Calculate(45, 0));
 }