1
Vote

BufferReader out of range exception

description

I believe the contains method has a bug. If you read the one letter word L, and call method contains('L') it crashes. The solution is to use a do while loop (instead of a while).

explanation in code --
-- CreateBufferReader("H");
-- var contains = _reader.Contains('H').Should().BeTrue();

comments