示例#1
0
 public void TestDivide(double firstArgument, double secondArgument, double output)
 {
     var calculator = new Divide();
     var testResult = calculator.Calculate(firstArgument, secondArgument);
     Assert.AreEqual(output, testResult, 0.0000001);
 }
示例#2
0
 public void DivideZeroTest()
 {
     var calculator = new Divide();
     calculator.Calculate(4, 0);
 }