コード例 #1
0
 public async Task VerifyCodeFixAsync()
 {
     _analyzerAssertions.AddDiagnosticResult(_diagnosticResult);
     await CSharpCodeFixVerifier <SourceAnalyzer, SourceFixProvider> .VerifyCodeFixAsync(_analyzerAssertions.Subject.Source, _analyzerAssertions.DiagnosticResults.ToArray(), _fixedCode);
 }
コード例 #2
0
 protected sealed override async Task VerifyCodeFixAsync(string markupCode, string expected, int codeActionIndex)
 {
     await CSharpCodeFixVerifier <TAnalyzer, TCodeFix> .VerifyCodeFixAsync(markupCode, expected, codeActionIndex);
 }