public static Task VerifyAnalyzerAsync(string source, params DiagnosticResult[] expected)
    {
        var test = new CSharpDelegateEndpointsAnalyzerVerifier <TAnalyzer> .Test {
            TestCode = source
        };

        test.ExpectedDiagnostics.AddRange(expected);
        return(test.RunAsync());
    }
Ejemplo n.º 2
0
 public static DiagnosticResult Diagnostic(string diagnosticId = null)
 => CSharpDelegateEndpointsAnalyzerVerifier <DelegateEndpointAnalyzer> .Diagnostic(diagnosticId);