Beispiel #1
0
 public void EnsureEvaluateCanReturnLastIn()
 {
     string expected = "-8 * 9";
     Evaluate evaluate = new Evaluate();
     evaluate.Input(expected);
     string actual = evaluate.LastIn;
     Assert.AreEqual(expected, actual);
 }
Beispiel #2
0
 public void EnsureEvaluateCanReturnLastOut()
 {
     string input = "-8 * 9";
     Evaluate evaluate = new Evaluate();
     evaluate.Input(input);
     string expected = evaluate.Result;
     string actual = evaluate.LastOut;
     Assert.AreEqual(expected, actual);
 }