Skip to content

Commit

Permalink
Don't throw away generic type arguments in impl
Browse files Browse the repository at this point in the history
  • Loading branch information
stakx committed Jan 13, 2023
1 parent aa4ba0e commit 88d04a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Moq/Protected/ProtectedMock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public void Verify<TResult>(string methodName, Times times, bool exactParameterM
public void Verify<TResult>(string methodName, Type[] genericTypeArguments, Times times, bool exactParameterMatch, params object[] args)
{
Guard.NotNull(genericTypeArguments, nameof(genericTypeArguments));
this.InternalVerify<TResult>(methodName, null, times, exactParameterMatch, args);
this.InternalVerify<TResult>(methodName, genericTypeArguments, times, exactParameterMatch, args);
}

private void InternalVerify<TResult>(string methodName, Type[] genericTypeArguments, Times times, bool exactParameterMatch, params object[] args)
Expand Down

0 comments on commit 88d04a7

Please sign in to comment.