Refactoring of CodedInputStream.Read??? to use boolean return with out param.
diff --git a/src/ProtocolBuffers.Test/CodedInputStreamTest.cs b/src/ProtocolBuffers.Test/CodedInputStreamTest.cs
index a49b1ed..c3ca0a1 100644
--- a/src/ProtocolBuffers.Test/CodedInputStreamTest.cs
+++ b/src/ProtocolBuffers.Test/CodedInputStreamTest.cs
@@ -362,7 +362,8 @@
try
{
- input.ReadBytes();
+ ByteString bytes = null;
+ input.ReadBytes(ref bytes);
Assert.Fail("Should have thrown an exception!");
}
catch (InvalidProtocolBufferException)
@@ -506,7 +507,8 @@
Assert.IsTrue(input.ReadTag(out testtag, out ignored));
Assert.AreEqual(tag, testtag);
- string text = input.ReadString();
+ string text = null;
+ input.ReadString(ref text);
Assert.AreEqual('\ufffd', text[0]);
}