Fix continuation of JSON deserialization (#42158)
authordevsko <devsko@users.noreply.github.com>
Wed, 16 Sep 2020 23:44:41 +0000 (01:44 +0200)
committerGitHub <noreply@github.com>
Wed, 16 Sep 2020 23:44:41 +0000 (16:44 -0700)
commit6c273932f1822370816265da9343fdbf41550f86
tree6ca9b1c89e2371a7d3968553c81beaf003ce90fe
parent783913897623ed0af0d5e750b0657d923fac9a2c
Fix continuation of JSON deserialization (#42158)

* Repro #42070

* formatting

* namespace

* Fix

* never forget the header

* More tests
- Test continuation at every position inside the tested object
- Many member with primitive and nullable types
- One more level of nested object
- All combinations of class/struct for tested and nested object
- tested and nested object with parametrized ctor for some properties

* Addressed feedback

* Test with original repro data from #42070

* custom converter to ensure the padding is written in front of the tested object

* rename

* test data moved to Strings.resx
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonPropertyInfoOfT.cs
src/libraries/System.Text.Json/tests/Resources/Strings.resx
src/libraries/System.Text.Json/tests/Serialization/ContinuationTests.cs [new file with mode: 0644]
src/libraries/System.Text.Json/tests/System.Text.Json.Tests.csproj