Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-file code fix verification #2140

Merged

Conversation

otac0n
Copy link
Contributor

@otac0n otac0n commented May 22, 2016

Adds support for verifying code fixes that affect more than one file.

foreach (var code in fixedCode)
{
await this.VerifyCSharpDiagnosticAsync(code.Replace("%1", this.Keyword), EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💭 This code construction is repeated a lot. Might be a good idea to add a VerifyNoCSharpDiagnosticsAsync method that will accept either a source file or a list of sources.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turns out, the overload exists. I'll update.

@vweijsters
Copy link
Contributor

👍 Looks good to me, only one small remark.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants