public void should_read_chars([ValueSource(nameof(GetEncodings))] Encoding encoding, [ValueSource(nameof(GetBufferSegmentSizes))] int bufferSegmentSize) { CreateContext(encoding, bufferSegmentSize); _writer.Write('X'); _writer.Write('X'); Assert.AreEqual((int)'X', _reader.PeekChar()); Assert.AreEqual('X', _reader.ReadChar()); Assert.AreEqual((int)'X', _reader.Read()); }