From f7f53eb771143347f10a15cc7f6bf4f001a47341 Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Wed, 12 Aug 2015 20:43:24 -0500 Subject: [PATCH] Verify during testing that code fixes do not use WellKnownFixAllProviders.BatchFixer --- .../StyleCop.Analyzers.Test/Verifiers/CodeFixVerifier.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/StyleCop.Analyzers/StyleCop.Analyzers.Test/Verifiers/CodeFixVerifier.cs b/StyleCop.Analyzers/StyleCop.Analyzers.Test/Verifiers/CodeFixVerifier.cs index acf1c9565..4d8ffe4d0 100644 --- a/StyleCop.Analyzers/StyleCop.Analyzers.Test/Verifiers/CodeFixVerifier.cs +++ b/StyleCop.Analyzers/StyleCop.Analyzers.Test/Verifiers/CodeFixVerifier.cs @@ -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) {