public void ReturnsCorrect(string input, string expected, int expectedPosition) { var bytes = Encoding.ASCII.GetBytes(input); using (var memoryStream = new MemoryStream(bytes)) { var reader = new PdfStreamReader(memoryStream, 512); var actual = reader.ReadLine(); Assert.Equal(expected, actual); Assert.Equal(expectedPosition, reader.Position); } }