public void CantChangeValueofConstant()
 {
     var input = "b=2";
     var p = new Parser(input);
     var arr = p.SplitOnOperand();
     p.AddKeyValuePair(arr);
     var input2 = "b=3";
     var p2 = new Parser(input2);
     var arr2 = p.SplitOnOperand();
     p.AddKeyValuePair(arr);
 }
 public void AddsKeyValuePairs()
 {
     var input = "x=2";
     var p = new Parser(input);
     var arr = p.SplitOnOperand();
     p.AddKeyValuePair(arr);
     Assert.AreEqual(Stack.Constants[arr[0]], 2);
 }
 public void GetsVariableValueFromDictionary()
 {
     var input1 = "a=10";
     var input2 = "a*8";
     var p = new Parser(input1);
     var arr = p.SplitOnOperand();
     p.AddKeyValuePair(arr);
     var p2 = new Parser(input2);
     var arr2 = p2.SplitOnOperand();
     CollectionAssert.AreEqual(new int[] { 10, 8 }, Stack.ReplaceConstsandStringsWithIntValues(arr2));
 }
 public void variablesCanOnlyBeOneCharacter()
 {
     var input = "cc=2";
     var p = new Parser(input);
     var arr = p.SplitOnOperand();
     p.AddKeyValuePair(arr);
 }
 public void variablesCantComeLastInAnExpression()
 {
     var input = "22=c";
     var p = new Parser(input);
     var arr = p.SplitOnOperand();
     p.AddKeyValuePair(arr);
 }