Skip to content

Commit

Permalink
Add back workaround for Mono
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotas committed Nov 16, 2023
1 parent 8ce5332 commit 19271ef
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<NotSupportedException>(() => Array.CreateInstanceFromArrayType(elementType.MakeArrayType(), 0));
Expand Down

0 comments on commit 19271ef

Please sign in to comment.