private void TestReadLine(RubyBufferedStream/*!*/ io, bool preserveEolns, string expected) { var s = io.ReadLine(RubyEncoding.Binary, preserveEolns, -1); Assert(s == null && expected == null || s.ToString() == expected); }