-
Notifications
You must be signed in to change notification settings - Fork 511
Add tests for mixed deconstruction in C# 10 #4081
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
base: master
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4081 +/- ##
========================================
Coverage 97.48% 97.49%
========================================
Files 1026 1037 +11
Lines 119387 119600 +213
Branches 3476 3476
========================================
+ Hits 116388 116602 +214
Misses 1986 1986
+ Partials 1013 1012 -1 🚀 New features to boost your workflow:
|
|
|
||
| DiagnosticResult[] expected = | ||
| { | ||
| Diagnostic(DiagnosticId).WithSpan(6, 22, 6, 30), |
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.
Any specific reason why markups are not used instead?
| { | ||
| [Fact] | ||
| [WorkItem(3990, "https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/3990")] | ||
| public async Task TestMixedDeconstructionDoesNotReportUnnecessaryParenthesesAsync() |
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.
Redundant because of the next test?
| } | ||
| }"; | ||
|
|
||
| await new CSharpTest() |
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.
Use VerifyCSharpFixAsync instead, as normal? I don't realize from reading this PR if there's a reason for doing it differently in this test.
| } | ||
| }"; | ||
|
|
||
| await new CSharpTest() |
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.
Same comment here
Closes #3990