From 19271efec9201f6ab92ad7a62248060576a4f7de Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Wed, 15 Nov 2023 17:24:46 -0800 Subject: [PATCH] Add back workaround for Mono --- .../tests/System.Runtime.Tests/System/ArrayTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libraries/System.Runtime/tests/System.Runtime.Tests/System/ArrayTests.cs b/src/libraries/System.Runtime/tests/System.Runtime.Tests/System/ArrayTests.cs index bdf68eada7b3a..1546fad4f40c1 100644 --- a/src/libraries/System.Runtime/tests/System.Runtime.Tests/System/ArrayTests.cs +++ b/src/libraries/System.Runtime/tests/System.Runtime.Tests/System/ArrayTests.cs @@ -1952,6 +1952,8 @@ public void CreateInstance_NotSupportedType_ThrowsNotSupportedException(Type ele [Theory] [InlineData(typeof(void))] [InlineData(typeof(GenericClass<>))] + // not using any by-ref type here as MakeArrayType throws for them, same goes for Type.GetType("SomeByRef[]") + [ActiveIssue("https://github.com/dotnet/runtime/issues/94086", typeof(PlatformDetection), nameof(PlatformDetection.IsMonoRuntime))] public void CreateInstanceFromArrayType_NotSupportedArrayType_ThrowsNotSupportedException(Type elementType) { Assert.Throws(() => Array.CreateInstanceFromArrayType(elementType.MakeArrayType(), 0));