aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/ProtocolBuffers.Test/Compatibility/DictionaryCompatibilityTests.cs
diff options
context:
space:
mode:
authorJisi Liu <jisi.liu@gmail.com>2015-08-21 11:42:27 -0700
committerJisi Liu <jisi.liu@gmail.com>2015-08-21 11:44:49 -0700
commitc3bc155aceda36ecb01cde2367a3b427f2d7ce40 (patch)
tree195d74745dad40a57d49bf718f50c7751336a405 /csharp/src/ProtocolBuffers.Test/Compatibility/DictionaryCompatibilityTests.cs
parentb0f661181d10bddc08e380992590a1cdd92be92b (diff)
parenteb65c69e14fb711208ad5111cb9672f00864bb6d (diff)
downloadprotobuf-c3bc155aceda36ecb01cde2367a3b427f2d7ce40.tar.gz
protobuf-c3bc155aceda36ecb01cde2367a3b427f2d7ce40.tar.bz2
protobuf-c3bc155aceda36ecb01cde2367a3b427f2d7ce40.zip
Merge branch 'master' of github.com:google/protobuf
Change-Id: If3fb07754a734bae610d95124528e073515ac525
Diffstat (limited to 'csharp/src/ProtocolBuffers.Test/Compatibility/DictionaryCompatibilityTests.cs')
-rw-r--r--csharp/src/ProtocolBuffers.Test/Compatibility/DictionaryCompatibilityTests.cs35
1 files changed, 0 insertions, 35 deletions
diff --git a/csharp/src/ProtocolBuffers.Test/Compatibility/DictionaryCompatibilityTests.cs b/csharp/src/ProtocolBuffers.Test/Compatibility/DictionaryCompatibilityTests.cs
deleted file mode 100644
index 299bb1a6..00000000
--- a/csharp/src/ProtocolBuffers.Test/Compatibility/DictionaryCompatibilityTests.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Google.ProtocolBuffers.Serialization;
-using NUnit.Framework;
-
-namespace Google.ProtocolBuffers.Compatibility
-{
- [TestFixture]
- public class DictionaryCompatibilityTests : CompatibilityTests
- {
- protected override object SerializeMessage<TMessage, TBuilder>(TMessage message)
- {
- DictionaryWriter writer = new DictionaryWriter();
- writer.WriteMessage(message);
- return writer.ToDictionary();
- }
-
- protected override TBuilder DeserializeMessage<TMessage, TBuilder>(object message, TBuilder builder, ExtensionRegistry registry)
- {
- new DictionaryReader((IDictionary<string, object>)message).Merge(builder);
- return builder;
- }
-
- protected override void AssertOutputEquals(object lhs, object rhs)
- {
- IDictionary<string, object> left = (IDictionary<string, object>)lhs;
- IDictionary<string, object> right = (IDictionary<string, object>)rhs;
-
- Assert.AreEqual(
- String.Join(",", new List<string>(left.Keys).ToArray()),
- String.Join(",", new List<string>(right.Keys).ToArray())
- );
- }
- }
-} \ No newline at end of file