예제 #1
0
 public void When_not_at_the_end_of_input()
 {
     var input = new[] {1}.AsInput();
     var parser = new EndOfInputParser<int>();
     var actualResult = parser.Parse(input);
     ParseResultAssert.IsFailure(actualResult);
 }
예제 #2
0
 public void When_at_the_end_of_input()
 {
     var input = new int[] {}.AsInput();
     var parser = new EndOfInputParser<int>();
     var actualResult = parser.Parse(input);
     ParseResultAssert.IsSuccess(actualResult);
 }