The CSharpAnalyzerVerifier, CSharpCodeFixVerifier, and CSharpCodeRefactoringVerifier classes are missing out on a great usability improvement.
Today:
With [StringSyntax("C#-test")] added:
[StringSyntax("C#-test")] can't be added to the language-agnostic XyzVerifier base methods, but matching Verify methods can be added to the CSharpXyzVerifier classes which hide the base static methods and directly delegate to them. By adding [StringSyntax("C#-test")] to the new methods, everyone's existing codebases light up with syntax highlighting without having to do anything besides update the testing package version.
Related: #1167
The CSharpAnalyzerVerifier, CSharpCodeFixVerifier, and CSharpCodeRefactoringVerifier classes are missing out on a great usability improvement.
Today:
With
[StringSyntax("C#-test")]added:[StringSyntax("C#-test")]can't be added to the language-agnostic XyzVerifier base methods, but matching Verify methods can be added to the CSharpXyzVerifier classes which hide the base static methods and directly delegate to them. By adding[StringSyntax("C#-test")]to the new methods, everyone's existing codebases light up with syntax highlighting without having to do anything besides update the testing package version.Related: #1167