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

Support It.IsAny<ParamType> generation for Mock.Of<T> #28

Open
spearsandshields opened this issue Apr 20, 2022 · 1 comment
Open

Support It.IsAny<ParamType> generation for Mock.Of<T> #28

spearsandshields opened this issue Apr 20, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@spearsandshields
Copy link

The plugin can handle It.IsAny<> param generation for SetUp method pretty well.
However, currently auto-generation will not detect the trigger when using the Mock.Of<T> (x => x.Method()) as the shorthand.
It would be nice if this is supported in a future version

@lconstan lconstan added the enhancement New feature or request label Apr 21, 2022
@lconstan
Copy link
Collaborator

If I understand correctly, you're talking about Linq to Mock feature.

It is indeed not currently supported, but you can do it using Setup and Returns as a workaround.

I'll have a look when time allows, in the meantime, feel free to submit a PR 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants