Beispiel #1
0
 public void TestAdd()
 {
     Assert.AreEqual("5", CalculateMachine.Calculate("1 + 4"));
 }
Beispiel #2
0
 public void TestSubstract()
 {
     Assert.AreEqual("5", CalculateMachine.Calculate("9 - 4"));
 }
Beispiel #3
0
 public void TestMultiply()
 {
     Assert.AreEqual("25", CalculateMachine.Calculate("5 * 5"));
 }
Beispiel #4
0
 public void TestNoOperation()
 {
     Assert.AreEqual("5", CalculateMachine.Calculate("5"));
 }