Skip to content

Commit

Permalink
Merge pull request #1195 from sharwell/assert-not-batchfixer
Browse files Browse the repository at this point in the history
Verify during testing that code fixes do not use the batch fixer
  • Loading branch information
sharwell committed Aug 13, 2015
2 parents 33f8be7 + f7f53eb commit acc69c9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ protected virtual CodeFixProvider GetCSharpCodeFixProvider()
var t1 = this.VerifyFixInternalAsync(LanguageNames.CSharp, this.GetCSharpDiagnosticAnalyzers().ToImmutableArray(), this.GetCSharpCodeFixProvider(), oldSource, newSource, codeFixIndex, allowNewCompilerDiagnostics, maxNumberOfIterations, GetSingleAnalyzerDocumentAsync, cancellationToken).ConfigureAwait(false);

var fixAllProvider = this.GetCSharpCodeFixProvider().GetFixAllProvider();
Assert.NotEqual(WellKnownFixAllProviders.BatchFixer, fixAllProvider);

if (fixAllProvider == null)
{
Expand Down

0 comments on commit acc69c9

Please sign in to comment.