Skip to content

Commit

Permalink
Improved test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sakno committed Jan 6, 2025
1 parent 3632413 commit 0606bce
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/DotNext.Tests/Reflection/TypeExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ public static void DelegateSignature()
Equal(typeof(string), signature.ReturnParameter.ParameterType);
}

[Fact]
public static void InvokeInvalidDelegate()
{
var ex = ThrowsAny<GenericArgumentException>(static () => DelegateType.GetInvokeMethod<MulticastDelegate>());
Same(typeof(MulticastDelegate), ex.Argument);
}

[Fact]
public static void IsGenericInstanceOf()
{
Expand Down

0 comments on commit 0606bce

Please sign in to comment.