Skip to content

Create C#-specific Verify methods with [StringSyntax("C#-test")] #1228

Description

@jnm2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions