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

Fix crash in fixer on certain invalid patterns #80007

Merged
merged 10 commits into from
Jan 5, 2023
Merged
Prev Previous commit
Next Next commit
Improve condition
  • Loading branch information
danmoseley committed Dec 28, 2022
commit 2996b4ceaba7b3c5576143e2a26ac543fd5e63a4
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static async Task VerifyCodeFixAsync(string source, string fixedSource, R
// but be unable to make the fix when requested.
// Such test cases need to indicate that an iteration is expected
// even though no fix is made.
if (expectedNumberOfIterations > 0)
if (expectedNumberOfIterations != -1)
{
test.NumberOfIncrementalIterations = expectedNumberOfIterations;
}
Expand Down