Utf8JsonReader should be consistent when dealing with more than one JSON payload...
authorAhson Khan <ahkha@microsoft.com>
Mon, 18 Mar 2019 21:51:33 +0000 (14:51 -0700)
committerGitHub <noreply@github.com>
Mon, 18 Mar 2019 21:51:33 +0000 (14:51 -0700)
commitf3771d265edfbdfc8e4c52ea62b9c97d182b0494
treea54949ad539b782a52e30a15a1b3e8911c289c1e
parenta6a722f6a9b85e2ec15a8156b65cf7c70928a328
Utf8JsonReader should be consistent when dealing with more than one JSON payload. (dotnet/corefx#36114)

* Utf8JsonReader should be consistent when dealing with more than one JSON
payload.

* Resolve PR feedback - update tests (Assert.Equals, move out of loop,
AssertThrows)

* Remove unnecessary assert since AssertThrows validates that anyway.

Commit migrated from https://github.com/dotnet/corefx/commit/969270f5b9aa921b9ec956be87600d1f2e915403
src/libraries/System.Text.Json/src/System/Text/Json/Reader/Utf8JsonReader.MultiSegment.cs
src/libraries/System.Text.Json/src/System/Text/Json/Reader/Utf8JsonReader.cs
src/libraries/System.Text.Json/tests/Utf8JsonReaderTests.MultiSegment.cs
src/libraries/System.Text.Json/tests/Utf8JsonReaderTests.cs