-
Notifications
You must be signed in to change notification settings - Fork 259
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
Implement codefix for MSTEST0006 (AvoidExpectedException) #4038
Conversation
@Evangelink Current implementation only wraps last statement. Let me know if we want to implement both fixes or if we want to go with this one first until we hear user feedback |
I think that will be the most used code fix so let's ship this one only for now and wait for feedback. Please once this is merged, update the documentation https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006 to mention we have code fix and the version it's introduced into |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add a test, sync and async (it's fine to do both in the same test) with multiple statements to clearly document we only wrap last statement?
Fixes #3399