示例#1
0
 public void ShouldHandleAddition1()
 {
     Assert.AreEqual(2, Calk.Calc("1+1"), 1e-15);
 }
示例#2
0
 public void ShouldHandleMultiplication3()
 {
     Assert.AreEqual(1476, Calk.Calc("12* 123"), 1e-15);
 }
示例#3
0
 public void ShouldHandleMultiplication2()
 {
     Assert.AreEqual(15, Calk.Calc("5*3"), 1e-15);
 }
示例#4
0
 public void ShouldHandleMultiplication1()
 {
     Assert.AreEqual(1, Calk.Calc("1*1"), 1e-15);
 }
示例#5
0
 public void ShouldHandleSubtraction2()
 {
     Assert.AreEqual(10, Calk.Calc("11-1"), 1e-15);
 }
示例#6
0
 public void ShouldHandleAddition2()
 {
     Assert.AreEqual(15, Calk.Calc("10+5"), 1e-15);
 }