From ee5850a2b5b703b6bb18e5584f47da92a952d86a Mon Sep 17 00:00:00 2001 From: Egor Bogatov Date: Wed, 8 Jan 2020 23:21:41 +0300 Subject: [PATCH] Update FieldInfoTest.cs --- mcs/class/corlib/Test/System.Reflection/FieldInfoTest.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/mcs/class/corlib/Test/System.Reflection/FieldInfoTest.cs b/mcs/class/corlib/Test/System.Reflection/FieldInfoTest.cs index 49f96746353..62367d9eb2d 100644 --- a/mcs/class/corlib/Test/System.Reflection/FieldInfoTest.cs +++ b/mcs/class/corlib/Test/System.Reflection/FieldInfoTest.cs @@ -1356,7 +1356,6 @@ namespace MonoTests.System.Reflection } [Test] - [Category ("NotWorking")] // https://github.com/mono/mono/issues/18364 public void SetValueDirect () { TestFields fields = new TestFields { MaxValue = 1234, str = "A" }; @@ -1366,8 +1365,6 @@ namespace MonoTests.System.Reflection info.SetValueDirect (reference, 4096); Assert.AreEqual (4096, fields.MaxValue); - // if we replace `fields.GetType ()` with `typeof (TestFields)` it won't work in AOT mode - // and mono now does it as an optimization (see https://github.com/mono/mono/pull/18293) info = fields.GetType ().GetField ("str"); reference = __makeref(fields); info.SetValueDirect (reference, "B"); -- 2.11.4.GIT