Fix netfx test failure
authorStephen Toub <stoub@microsoft.com>
Fri, 20 Jul 2018 02:37:26 +0000 (19:37 -0700)
committerGitHub <noreply@github.com>
Fri, 20 Jul 2018 02:37:26 +0000 (19:37 -0700)
Commit migrated from https://github.com/dotnet/corefx/commit/1e7d4d88f2c3d4e6dacb5c58ad7fed721d506654

src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/PrelinkTests.cs

index 0effdb2..ffd12de 100644 (file)
@@ -36,7 +36,7 @@ namespace System.Runtime.InteropServices.Tests
         [Fact]
         public void Prelink_NonRuntimeMethod_ThrowsArgumentException()
         {
-            AssertExtensions.Throws<ArgumentException>("m", () => Marshal.Prelink(new NonRuntimeMethodInfo()));
+            AssertExtensions.Throws<ArgumentException>("m", null, () => Marshal.Prelink(new NonRuntimeMethodInfo()));
         }
         
         public class NonRuntimeMethodInfo : MethodInfo