예제 #1
0
 public void EvaluateSimpleDivisionSymbolicAndValueResult()
 {
     var addition = new Division(new Number("a"), new Number("4.6"));
     Assert.AreEqual("a/4.6", ((Number)addition.Evaluate()).ToString());
 }
예제 #2
0
 public void EvaluateSimpleDivisionValueResult()
 {
     var addition = new Division(new Number("2.6"), new Number("4.8"));
     Assert.AreEqual("0.541666666666667", ((Number)addition.Evaluate()).ToString());
 }