Skip to content

Conversation

@krwq
Copy link
Member

@krwq krwq commented Jul 1, 2022

Fixes remaining comments in #70435 - some were already addressed in #71449

  • adds tests for adding property when JsonTypeInfoKind is not Object
  • adds functional tests for Dictionary/List similar to ones added for JsonTypeInfoKind.Object (custom converter and CreateObject tests)

@krwq krwq requested a review from eiriktsarpalis July 1, 2022 09:58
@ghost ghost added the area-System.Text.Json label Jul 1, 2022
@ghost ghost assigned krwq Jul 1, 2022
@ghost
Copy link

ghost commented Jul 1, 2022

Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes remaining comments in #70435 - some were already addressed in #71449

  • adds tests for adding property when JsonTypeInfoKind is not Object
  • adds functional tests for Dictionary/List similar to ones added for JsonTypeInfoKind.Object (custom converter and CreateObject tests)
Author: krwq
Assignees: krwq
Labels:

area-System.Text.Json

Milestone: -

}

[Fact]
public static void UntypedCreateObjectWithDefaults()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I merged Untyped and Typed test into one since it was mostly duplicated and therefore some code is removed here

@krwq krwq merged commit 4935319 into dotnet:main Jul 1, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Jul 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants