Skip to content

Commit

Permalink
Improve coverage for SA1131 by updating tests so they pass for the ri…
Browse files Browse the repository at this point in the history
…ght reason
  • Loading branch information
bjornhellander committed Nov 11, 2023
1 parent 5a68081 commit ac50145
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ public class TypeName
public void Test()
{{
int j = 6;
bool b = j {@operator} i;
bool b = i {@operator} j;
}}
}}";
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
Expand All @@ -396,7 +396,7 @@ public class TypeName
public void Test()
{{
int j = 6;
bool b = j {@operator} i;
bool b = i {@operator} j;
}}
}}";
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
Expand All @@ -419,7 +419,7 @@ public class TypeName
public void Test()
{{
int j = 6;
bool b = j {@operator} i;
bool b = i {@operator} j;
}}
}}";
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
Expand Down

0 comments on commit ac50145

Please sign in to comment.