diff options
author | csharptest <roger@csharptest.net> | 2011-06-03 21:35:02 -0500 |
---|---|---|
committer | rogerk <devnull@localhost> | 2011-06-03 21:35:02 -0500 |
commit | d2af9e923f4f2d7f7c56a2e74d5a26536aae0369 (patch) | |
tree | 786a89b7f356bf8e4d897453d6fe45dab80d2dea /src/ProtocolBuffers.Test/CodedInputStreamTest.cs | |
parent | 9928441649bde7a5e3bb84808821f1a5bef0bba6 (diff) | |
download | protobuf-d2af9e923f4f2d7f7c56a2e74d5a26536aae0369.tar.gz protobuf-d2af9e923f4f2d7f7c56a2e74d5a26536aae0369.tar.bz2 protobuf-d2af9e923f4f2d7f7c56a2e74d5a26536aae0369.zip |
Refactoring of CodedInputStream.Read??? to use boolean return with out param.
Diffstat (limited to 'src/ProtocolBuffers.Test/CodedInputStreamTest.cs')
-rw-r--r-- | src/ProtocolBuffers.Test/CodedInputStreamTest.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ProtocolBuffers.Test/CodedInputStreamTest.cs b/src/ProtocolBuffers.Test/CodedInputStreamTest.cs index a49b1ed3..c3ca0a10 100644 --- a/src/ProtocolBuffers.Test/CodedInputStreamTest.cs +++ b/src/ProtocolBuffers.Test/CodedInputStreamTest.cs @@ -362,7 +362,8 @@ namespace Google.ProtocolBuffers try
{
- input.ReadBytes();
+ ByteString bytes = null;
+ input.ReadBytes(ref bytes);
Assert.Fail("Should have thrown an exception!");
}
catch (InvalidProtocolBufferException)
@@ -506,7 +507,8 @@ namespace Google.ProtocolBuffers 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]);
}
|