Commit df06a8f
Re-enable some analyzer tests (#1550)
* Re-enable tests that were disabled for #1364
* Initial plan
* Add SkipLocalDiagnosticCheck to transitive code fix tests
The VSTHRD010 analyzer reports transitive diagnostics via
RegisterCompilationEndAction, which the Roslyn testing framework
classifies as 'non-local'. The test framework throws
'Code fix is attempting to provide a fix for a non-local analyzer
diagnostic' unless CodeFixTestBehaviors.SkipLocalDiagnosticCheck
is set. This adds that flag to the three affected test instances.
Co-authored-by: AArnott <3548+AArnott@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: AArnott <3548+AArnott@users.noreply.github.com>1 parent 34ec670 commit df06a8f
1 file changed
Lines changed: 14 additions & 2 deletions
File tree
- test/Microsoft.VisualStudio.Threading.Analyzers.Tests
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
288 | 292 | | |
289 | 293 | | |
290 | 294 | | |
| |||
293 | 297 | | |
294 | 298 | | |
295 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
296 | 304 | | |
297 | 305 | | |
298 | 306 | | |
| |||
522 | 530 | | |
523 | 531 | | |
524 | 532 | | |
525 | | - | |
| 533 | + | |
526 | 534 | | |
527 | 535 | | |
528 | 536 | | |
| |||
587 | 595 | | |
588 | 596 | | |
589 | 597 | | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
590 | 602 | | |
591 | 603 | | |
592 | 604 | | |
| |||
0 commit comments