Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It.IsSubtype<T> doesn't work when T has constraints #1215

Closed
CoenraadS opened this issue Nov 1, 2021 · 1 comment
Closed

It.IsSubtype<T> doesn't work when T has constraints #1215

CoenraadS opened this issue Nov 1, 2021 · 1 comment

Comments

@CoenraadS
Copy link

CoenraadS commented Nov 1, 2021

I was struggling with the documentation for It.IsSubType

https://stackoverflow.com/questions/69800011/moq-it-issubtype-has-no-implicit-reference-conversion/69800795#69800795

Until someone pointed me to use TypeMatcher instead. Perhaps it would be useful to include this part of the documentation: https://github.com/Moq/moq4/wiki/Quickstart#type-matchers-moq-413

@stakx
Copy link
Contributor

stakx commented Nov 1, 2021

@CoenraadS, feel free to edit the wiki. Adding <remarks> to the XML doc comments of It.IsSubtype<> might be a nice addition, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants