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