public void not_passing_MaxReadPosition_does_not_restrict_reading_stream()
        {
            const string inputText = "text1234";
            const string expected = "text1234";

            var stream = new DelimitingReadableStream(TestHelpers.TextToStream(inputText));
            Assert.Equal(expected, new StreamReader(stream).ReadToEnd());
        }
 public void passing_MaxReadPosition_should_restrict_reading_stream(string text, int delimitedTo, string expected)
 {
     var stream = new DelimitingReadableStream(TestHelpers.TextToStream(text), delimitedTo);
     Assert.Equal(expected, new StreamReader(stream).ReadToEnd());
 }