コード例 #1
0
 public void DivisionByZero()
 {
     var calculator = new Divide();
     calculator.Calculate(22,0);
 }
コード例 #2
0
 public void CalculateTest(double firstArgument,double secondArgument, double result)
 {
     var calculator = new Divide();
     var testResult = calculator.Calculate(firstArgument, secondArgument);
     Assert.AreEqual(testResult, result);
 }