aboutsummaryrefslogtreecommitdiffhomepage
path: root/csharp/src/Google.Protobuf.Test/IssuesTest.cs
diff options
context:
space:
mode:
authorGravatar alien <the-alien@live.ru>2016-03-29 20:56:32 +0300
committerGravatar alien <the-alien@live.ru>2016-03-29 20:56:32 +0300
commit6f8dd2115b3ed07819a48dfa78b15770dfa2c450 (patch)
tree2c71285c5f435c337114d5b8c0c0d6b2ecd302db /csharp/src/Google.Protobuf.Test/IssuesTest.cs
parent0d32ab37fa94134427478d6776108e7cdb3e5e15 (diff)
Code review fixes
Diffstat (limited to 'csharp/src/Google.Protobuf.Test/IssuesTest.cs')
-rw-r--r--csharp/src/Google.Protobuf.Test/IssuesTest.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/csharp/src/Google.Protobuf.Test/IssuesTest.cs b/csharp/src/Google.Protobuf.Test/IssuesTest.cs
index 5b432edf..a38d6b08 100644
--- a/csharp/src/Google.Protobuf.Test/IssuesTest.cs
+++ b/csharp/src/Google.Protobuf.Test/IssuesTest.cs
@@ -66,6 +66,7 @@ namespace Google.Protobuf
var settings = new JsonParser.Settings(10, TypeRegistry.FromFiles(UnittestIssuesReflection.Descriptor));
var parser = new JsonParser(settings);
+ // It is safe to use either original field name or explicitly specified json_name
Assert.AreEqual(new TestJsonName { Name = "test", Description = "test2", Guid = "test3" },
parser.Parse<TestJsonName>("{ \"name\": \"test\", \"desc\": \"test2\", \"guid\": \"test3\" }"));
}