Skip to content

Commit 19271ef

Browse files
committed
Add back workaround for Mono
1 parent 8ce5332 commit 19271ef

File tree

1 file changed

+2
-0
lines changed
  • src/libraries/System.Runtime/tests/System.Runtime.Tests/System

1 file changed

+2
-0
lines changed

src/libraries/System.Runtime/tests/System.Runtime.Tests/System/ArrayTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,6 +1952,8 @@ public void CreateInstance_NotSupportedType_ThrowsNotSupportedException(Type ele
19521952
[Theory]
19531953
[InlineData(typeof(void))]
19541954
[InlineData(typeof(GenericClass<>))]
1955+
// not using any by-ref type here as MakeArrayType throws for them, same goes for Type.GetType("SomeByRef[]")
1956+
[ActiveIssue("https://github.com/dotnet/runtime/issues/94086", typeof(PlatformDetection), nameof(PlatformDetection.IsMonoRuntime))]
19551957
public void CreateInstanceFromArrayType_NotSupportedArrayType_ThrowsNotSupportedException(Type elementType)
19561958
{
19571959
Assert.Throws<NotSupportedException>(() => Array.CreateInstanceFromArrayType(elementType.MakeArrayType(), 0));

0 commit comments

Comments
 (0)