Skip to content

Test ArgumentNullException JsonElementWriteTests.WriteNullStringAsProperty #30245

@benaadams

Description

@benaadams

netfx-Windows_NT-Release-x86-Windows.10.Amd64.ClientRS5.Open

System.Text.Json.Tests.JsonElementWriteTests.WriteNullStringAsProperty(indented: True)
System.Text.Json.Tests.JsonElementWriteTests.WriteNullStringAsProperty(indented: False)

Error message
System.ArgumentNullException : Value cannot be null.\r\nParameter name: propertyName

Stack trace
   at System.Text.Json.Utf8JsonWriter.WritePropertyName(String propertyName)
       in /_/src/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteProperties.String.cs:line 52
   at System.Text.Json.Tests.JsonElementWriteTests.WritePropertyValue(Boolean indented, String propertyName, String jsonIn, String expectedIndent, String expectedMinimal)
       in /_/src/System.Text.Json/tests/JsonElementWriteTests.cs:line 1086
   at System.Text.Json.Tests.JsonElementWriteTests.WritePropertyValueBothForms(Boolean indented, String propertyName, String jsonIn, String expectedIndent, String expectedMinimal)
       in /_/src/System.Text.Json/tests/JsonElementWriteTests.cs:line 1042
   at System.Text.Json.Tests.JsonElementWriteTests.WriteNullStringAsProperty(Boolean indented)
       in /_/src/System.Text.Json/tests/JsonElementWriteTests.cs:line 398

https://dev.azure.com/dnceng/public/_build/results?buildId=264150&view=ms.vss-test-web.build-test-results-tab

/cc @bartonjs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions