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
[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(