Ejemplo n.º 1
0
 public void ExceptionTest()
 {
     ICalculator calculator = new Div();
     Assert.Throws<ArgumentException>(() => calculator.Calculate(1, 0));
 }
Ejemplo n.º 2
0
 public void BasicTestDiv(double first, double second, double expected)
 {
     ICalculator calculator = new Div();
     double result = calculator.Calculate(first, second);
     Assert.AreEqual(expected, result);
 }