Exemplo n.º 1
0
    public static Task VerifyAnalyzerAsync(string source, params DiagnosticResult[] expected)
    {
        var test = new CSharpRouteHandlerAnalyzerVerifier <TAnalyzer> .Test {
            TestCode = source
        };

        test.ExpectedDiagnostics.AddRange(expected);
        return(test.RunAsync());
    }
 public static DiagnosticResult Diagnostic(string diagnosticId = null)
 => CSharpRouteHandlerAnalyzerVerifier <RouteHandlerAnalyzer> .Diagnostic(diagnosticId);