diff options
author | Jon Skeet <jonskeet@google.com> | 2016-01-04 14:03:01 +0000 |
---|---|---|
committer | Jon Skeet <jonskeet@google.com> | 2016-01-11 09:34:43 +0000 |
commit | 9e4f354f14775061ed098c896170d3a2d01a3895 (patch) | |
tree | e7e6850910cbd00970c70c4514246c6b7ea93ac1 /csharp/src/Google.Protobuf.Test/JsonFormatterTest.cs | |
parent | 5700a1054b081f425964b0b0e1535438da4b2ea1 (diff) | |
download | protobuf-9e4f354f14775061ed098c896170d3a2d01a3895.tar.gz protobuf-9e4f354f14775061ed098c896170d3a2d01a3895.tar.bz2 protobuf-9e4f354f14775061ed098c896170d3a2d01a3895.zip |
Prohibit null values in map fields
On deserialization, missing values for message types
are replaced with a "default" message.
Diffstat (limited to 'csharp/src/Google.Protobuf.Test/JsonFormatterTest.cs')
-rw-r--r-- | csharp/src/Google.Protobuf.Test/JsonFormatterTest.cs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/csharp/src/Google.Protobuf.Test/JsonFormatterTest.cs b/csharp/src/Google.Protobuf.Test/JsonFormatterTest.cs index 2cf2d5fc..ace70b00 100644 --- a/csharp/src/Google.Protobuf.Test/JsonFormatterTest.cs +++ b/csharp/src/Google.Protobuf.Test/JsonFormatterTest.cs @@ -196,13 +196,6 @@ namespace Google.Protobuf } [Test] - public void NullValueForMessage() - { - var message = new TestMap { MapInt32ForeignMessage = { { 10, null } } }; - AssertJson("{ 'mapInt32ForeignMessage': { '10': null } }", JsonFormatter.Default.Format(message)); - } - - [Test] [TestCase("a\u17b4b", "a\\u17b4b")] // Explicit [TestCase("a\u0601b", "a\\u0601b")] // Ranged [TestCase("a\u0605b", "a\u0605b")] // Passthrough (note lack of double backslash...) |