public void subTest()
 {
     Calculator calc = new Calculator('-');
     double result = calc.calc(3.3, 5.5);
     Assert.IsTrue(result == -2.2);
 }
 public void multiTest()
 {
     Calculator calc = new Calculator('*');
     double result = calc.calc(3.3, 5.5);
     Assert.IsTrue(result == 18.15);
 }
 public void divTest1()
 {
     Calculator calc = new Calculator('/');
     double result = calc.calc(3.3, 5.5);
     Assert.IsTrue(result == 0.6);
 }
 public void divTest2()
 {
     Calculator calc = new Calculator('/');
     double result = calc.calc(3.3, 0);
     Assert.IsTrue(Double.IsInfinity(result));
 }
 public void addTest()
 {
     Calculator calc = new Calculator('+');
     double result = calc.calc(3.3, 5.5);
     Assert.IsTrue(result == 8.8);
 }