Use relaxed JavascriptEncoder in S.T.JSON specific tests to improve coverage. (dotnet...
authorAhson Khan <ahson_ahmedk@yahoo.com>
Mon, 29 Jul 2019 04:17:28 +0000 (21:17 -0700)
committerGitHub <noreply@github.com>
Mon, 29 Jul 2019 04:17:28 +0000 (21:17 -0700)
commitb22d31316412c7225eccf9e28e426da77ef1975c
tree1687a5653e6306cd4b5318eeb24faa51b81910f6
parent351fb30982af4f2d967d2216b11268aa821a551b
Use relaxed JavascriptEncoder in S.T.JSON specific tests to improve coverage. (dotnet/corefx#39560)

* Use relaxed JavascriptEncoder in S.T.JSON specific tests to improve
coverage.

* Add control characters as well as part of the test data.

* Add JsonElement.WriteTo test and make sure all Utf8JsonWriter in tests
are disposed.

* Fix spacing/formatting.

* Fix call to AssertEquals since it moved to JsonTestHelper.

Commit migrated from https://github.com/dotnet/corefx/commit/74d26be704117139e9ef081c9e287740fde5d002
src/libraries/System.Text.Json/tests/DebuggerTests.cs
src/libraries/System.Text.Json/tests/JsonDocumentTests.cs
src/libraries/System.Text.Json/tests/JsonElementWriteTests.cs
src/libraries/System.Text.Json/tests/JsonPropertyTests.cs
src/libraries/System.Text.Json/tests/JsonTestHelper.cs
src/libraries/System.Text.Json/tests/Serialization/Value.WriteTests.cs
src/libraries/System.Text.Json/tests/Utf8JsonWriterTests.cs