Skip to content

Commit

Permalink
Add default overload for Diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKotsenas committed Jun 21, 2024
1 parent 5947d6e commit bc42278
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Microsoft.CodeAnalysis.Testing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ use of "basic use cases" for test scenarios that would otherwise be considered a
public static class CSharpAnalyzerVerifier<TAnalyzer>
where TAnalyzer : DiagnosticAnalyzer, new()
{
public static DiagnosticResult Diagnostic()
=> CSharpAnalyzerVerifier<TAnalyzer, DefaultVerifier>.Diagnostic();

public static DiagnosticResult Diagnostic(string diagnosticId)
=> CSharpAnalyzerVerifier<TAnalyzer, DefaultVerifier>.Diagnostic(diagnosticId);

Expand Down

0 comments on commit bc42278

Please sign in to comment.