public void ParseCanCheckForGoodInput() { Parse parse = new Parse("1 + 2"); Assert.IsTrue(parse.CheckInput()); }
public void ParseTwoLetterConstant() { Parse parse = new Parse("bb + 3"); parse.CheckInput(); Assert.IsFalse(parse.IsGoodInput); }
public void ParseTwoOperatorError() { Parse parse = new Parse("1+ *2"); parse.CheckInput(); Assert.IsFalse(parse.IsGoodInput); }
public void ParseThreeArgumentError() { Parse parse = new Parse("1 + 2 / 4"); parse.CheckInput(); Assert.IsFalse(parse.IsGoodInput); }