roslyn-sdk icon indicating copy to clipboard operation
roslyn-sdk copied to clipboard

VisualBasicCodeFixVerifier passes tests even when analyzer isn't configured for VB

Open AArnott opened this issue 5 years ago • 0 comments

An analyzer that is only attributed with:

    [DiagnosticAnalyzer(LanguageNames.CSharp)]

May still work properly for VB and pass VB analyzer verifications, yet it won't work at all for VB in the product because the attribute is wrong.

The test should fail if the language being tested isn't among the list of languages in the attribute.

Same for code fix providers.

AArnott avatar Apr 09 '20 22:04 AArnott