Example #1
0
 public void testLesser()
 {
     simulateDelay();
     if (9 != BasicMath.lesser(9, 12))
     {
         throw new MathException("Cant find lesser!");
     }
 }
Example #2
0
 public void testGreater()
 {
     simulateDelay();
     if (12 != BasicMath.greater(9, 12))
     {
         throw new MathException("Cant find greater!");
     }
 }
Example #3
0
 public void testDivideWithRemainder()
 {
     simulateDelay();
     if (4.5 != BasicMath.divide(9, 2))
     {
         throw new MathException("Cant divide!");
     }
 }
Example #4
0
 public void testMultiply()
 {
     simulateDelay();
     if (6 != BasicMath.multiply(3, 2))
     {
         throw new MathException("Cant multiply!");
     }
 }
Example #5
0
 public void testSubtract()
 {
     simulateDelay();
     if (3 != BasicMath.subtract(5, 2))
     {
         throw new MathException("Cant subtract!");
     }
 }
Example #6
0
 public void testAdd()
 {
     simulateDelay();
     if (5 != BasicMath.add(3, 2))
     {
         throw new MathException("Cant add!");
     }
 }