Example #1
0
 public void ExceptionTest()
 {
     ICalculator calculator = new Divide();
     Assert.Throws<ArgumentException>(() => calculator.Calculate(1,0));
 }
Example #2
0
 public void BasicTestDivide(double first, double second, double expected)
 {
     ICalculator calculator = new Divide();
     double result = calculator.Calculate(first, second);
     Assert.AreEqual(expected, result);
 }