-
Notifications
You must be signed in to change notification settings - Fork 7
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
Checking constructor arguments passed via Substitute.For
/Substitute.ForPartsOf
#1
Comments
I took an initial look at this one, and as for today I think I know how to write analyzer which prevents you from using
The real problem for me will be situation when your class has multiple constructors and then I have to figure out proper overload to choose based on arguments user provided. I didn't find any public API in Roslyn which would do that for me, so this particular feature might not be implemented. |
…stitute/NSubstitute.Analyzers into GH-1-SubstituteForAnalyzers
[GH-1] - Checking constructor arguments passed via `Substitute.For`/`Substitute.ForPartsOf`
Fixed in #13 |
Using an analyser for this came up in NSub#314, so I thought I'd raise this issue here for discussion and to see how practical it would be to implement.
The text was updated successfully, but these errors were encountered: