We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3632413 commit 0606bceCopy full SHA for 0606bce
src/DotNext.Tests/Reflection/TypeExtensionsTests.cs
@@ -18,6 +18,13 @@ public static void DelegateSignature()
18
Equal(typeof(string), signature.ReturnParameter.ParameterType);
19
}
20
21
+ [Fact]
22
+ public static void InvokeInvalidDelegate()
23
+ {
24
+ var ex = ThrowsAny<GenericArgumentException>(static () => DelegateType.GetInvokeMethod<MulticastDelegate>());
25
+ Same(typeof(MulticastDelegate), ex.Argument);
26
+ }
27
+
28
[Fact]
29
public static void IsGenericInstanceOf()
30
{
0 commit comments