Remove the WriteNullStringAsProperty test
authorJeremy Barton <jbarton@microsoft.com>
Sat, 13 Jul 2019 21:34:29 +0000 (14:34 -0700)
committerGitHub <noreply@github.com>
Sat, 13 Jul 2019 21:34:29 +0000 (14:34 -0700)
The writer has standardized on not allowing null -> Empty coercion, and this
test no longer is needed since JsonElement doesn't have a WriteProperty method,
and a JsonProperty can't ever have a null property name.

Commit migrated from https://github.com/dotnet/corefx/commit/5294f0da4695162603d24dba351c985181042796

src/libraries/System.Text.Json/tests/JsonElementWriteTests.cs

index 204dc6b..c69cf67 100644 (file)
@@ -385,21 +385,6 @@ null,
         [Theory]
         [InlineData(false)]
         [InlineData(true)]
-        public static void WriteNullStringAsProperty(bool indented)
-        {
-            WritePropertyValueBothForms(
-                indented,
-                null,
-                "\"\"",
-                @"{
-  """": """"
-}",
-                "{\"\":\"\"}");
-        }
-
-        [Theory]
-        [InlineData(false)]
-        [InlineData(true)]
         public static void WriteNumberAsProperty(bool indented)
         {
             WritePropertyValueBothForms(