Remove inactive JsonElement test that depends on JSON path being set on DOM exception...
authorLayomi Akinrinade <laakinri@microsoft.com>
Tue, 31 Mar 2020 17:07:15 +0000 (13:07 -0400)
committerGitHub <noreply@github.com>
Tue, 31 Mar 2020 17:07:15 +0000 (10:07 -0700)
src/libraries/System.Text.Json/tests/Serialization/ExceptionTests.cs

index a9db0e7..f62a252 100644 (file)
@@ -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<ClassWithExtensionProperty>(@"{""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();