aboutsummaryrefslogtreecommitdiffhomepage
path: root/csharp/ProtocolBuffers.Test/CodedOutputStreamTest.cs
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/ProtocolBuffers.Test/CodedOutputStreamTest.cs')
-rw-r--r--csharp/ProtocolBuffers.Test/CodedOutputStreamTest.cs8
1 files changed, 2 insertions, 6 deletions
diff --git a/csharp/ProtocolBuffers.Test/CodedOutputStreamTest.cs b/csharp/ProtocolBuffers.Test/CodedOutputStreamTest.cs
index 41b7b4b3..d6a4e672 100644
--- a/csharp/ProtocolBuffers.Test/CodedOutputStreamTest.cs
+++ b/csharp/ProtocolBuffers.Test/CodedOutputStreamTest.cs
@@ -21,10 +21,6 @@ namespace Google.ProtocolBuffers {
[TestFixture]
public class CodedOutputStreamTest {
- private static void AssertEqualBytes(byte[] a, byte[] b) {
- Assert.AreEqual(ByteString.CopyFrom(a), ByteString.CopyFrom(b));
- }
-
/// <summary>
/// Writes the given value using WriteRawVarint32() and WriteRawVarint64() and
/// checks that the result matches the given bytes
@@ -171,7 +167,7 @@ namespace Google.ProtocolBuffers {
TestAllTypes message = TestUtil.GetAllSet();
byte[] rawBytes = message.ToByteArray();
- AssertEqualBytes(TestUtil.GoldenMessage.ToByteArray(), rawBytes);
+ TestUtil.AssertEqualBytes(TestUtil.GoldenMessage.ToByteArray(), rawBytes);
// Try different block sizes.
for (int blockSize = 1; blockSize < 256; blockSize *= 2) {
@@ -180,7 +176,7 @@ namespace Google.ProtocolBuffers {
CodedOutputStream.CreateInstance(rawOutput, blockSize);
message.WriteTo(output);
output.Flush();
- AssertEqualBytes(rawBytes, rawOutput.ToArray());
+ TestUtil.AssertEqualBytes(rawBytes, rawOutput.ToArray());
}
}