Skip to content

Commit 0606bce

Browse files
committed
Improved test coverage
1 parent 3632413 commit 0606bce

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/DotNext.Tests/Reflection/TypeExtensionsTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ public static void DelegateSignature()
1818
Equal(typeof(string), signature.ReturnParameter.ParameterType);
1919
}
2020

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+
2128
[Fact]
2229
public static void IsGenericInstanceOf()
2330
{

0 commit comments

Comments
 (0)