Utf8JsonReader throw when isFinal is true and the first call to Read returns false...
authorRoman Marusyk <Marusyk@users.noreply.github.com>
Fri, 18 Jan 2019 04:54:53 +0000 (06:54 +0200)
committerAhson Khan <ahkha@microsoft.com>
Fri, 18 Jan 2019 04:54:53 +0000 (20:54 -0800)
commit1af66f12996a64a9417a845c515fe11d6e621c84
tree99264a3fefb18850148d677e652e60cfa28aca6a
parent8bb2f7193a78ce0c1e6c356aade5558359ad6d58
Utf8JsonReader throw when isFinal is true and the first call to Read returns false (dotnet/corefx#34155)

* Utf8JsonReader throw when isFinal is true and the first call to Read returns false

* Fix unit tests

* Code review fixes

* Fix unit test

* Fix unit test

* Fixes after code review

Commit migrated from https://github.com/dotnet/corefx/commit/4431b3c63cbe121e5587c6bc6b18c69e80385b14
src/libraries/System.Text.Json/src/Resources/Strings.resx
src/libraries/System.Text.Json/src/System/Text/Json/Reader/Utf8JsonReader.cs
src/libraries/System.Text.Json/src/System/Text/Json/ThrowHelper.cs
src/libraries/System.Text.Json/tests/Utf8JsonReaderTests.MultiSegment.cs
src/libraries/System.Text.Json/tests/Utf8JsonReaderTests.cs