Skip to content

Verifying a protected generic method that returns a value is broken #1314

@nthornton2010

Description

@nthornton2010

This Verify method does not pass genericTypeArguments into InternalVerify, so this method will always throw an error because it thinks no generic type arguments were provided even though they were.

https://github.com/moq/moq4/blob/d535cc40870362f9667b64de1308fda3c204e6b8/src/Moq/Protected/ProtectedMock.cs#L253

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions