From ffa07d355b347a004b740154070639aca6d2a804 Mon Sep 17 00:00:00 2001 From: Layomi Akinrinade Date: Tue, 31 Mar 2020 13:07:15 -0400 Subject: [PATCH] Remove inactive JsonElement test that depends on JSON path being set on DOM exceptions (#34167) --- .../tests/Serialization/ExceptionTests.cs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/libraries/System.Text.Json/tests/Serialization/ExceptionTests.cs b/src/libraries/System.Text.Json/tests/Serialization/ExceptionTests.cs index a9db0e7..f62a252 100644 --- a/src/libraries/System.Text.Json/tests/Serialization/ExceptionTests.cs +++ b/src/libraries/System.Text.Json/tests/Serialization/ExceptionTests.cs @@ -364,22 +364,6 @@ namespace System.Text.Json.Serialization.Tests } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/32359")] - public static void ExtensionPropertyRoundTripFails() - { - try - { - JsonSerializer.Deserialize(@"{""MyNestedClass"":{""UnknownProperty"":bad}}"); - Assert.True(false, "Expected JsonException was not thrown."); - } - catch (JsonException e) - { - // Until JsonElement supports populating Path ("UnknownProperty"), which will be prepended by the serializer ("MyNestedClass"), this will fail. - Assert.Equal("$.MyNestedClass.UnknownProperty", e.Path); - } - } - - [Fact] public static void CaseInsensitiveFails() { var options = new JsonSerializerOptions(); -- 2.7.4