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); }
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); }