Support It.IsAny<ParamType> generation for Mock.Of<T>
spearsandshields opened this issue · 1 comments
spearsandshields commented
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 commented
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 😊