Exemple #1
0
 public void ExceptionTest()
 {
     ICalculator calculator = new Div();
     Assert.Throws<ArgumentException>(() => calculator.Calculate(1, 0));
 }
Exemple #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);
 }