Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-georgiou-sonarsource committed Jun 12, 2024
1 parent 58d6c92 commit 70dc869
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public void ProcessParameterReference_MemberBindingByReference_DifferentCfgOnNet
var code = """
char[] charArray = null;
var ret = false;
var stringVariable = "Lorem Ipsum"
var stringVariable = "Lorem Ipsum";
if (boolParameter)
ret = charArray.Any(stringVariable.Contains);
""";
Expand Down Expand Up @@ -219,7 +219,7 @@ public void Captured_StaticLambda_NotLiveIn_NotLiveOut()
Capturing(static x => x + 2);
if (boolParameter)
return;
Method(0)
Method(0);
""";
var context = CreateContextCS(code);
context.ValidateEntry(LiveIn("boolParameter"), LiveOut("boolParameter"));
Expand Down Expand Up @@ -700,7 +700,7 @@ public void ProcessLocalReference_Reassigned_LiveIn()
{
var code = """
var intVariable = 40;
var stringVariable = "Lorem Ipsum"
var stringVariable = "Lorem Ipsum";
if (boolParameter)
return;
intVariable = intVariable + 2;
Expand Down Expand Up @@ -943,7 +943,6 @@ public void ReturningDelegate_Nested_LiveIn()
using System;
public class Sample
{
public Func<int> Main(int intParameter) =>
public Func<int> Main(int intParameter) =>
() =>
{
Expand Down Expand Up @@ -1015,7 +1014,7 @@ public class Sample
private int field;
public int Property { get; set; }

public void Main(bool boolParameter, int intParameter{additionalParameters})
public void Main(bool boolParameter, int intParameter{{additionalParameters}})
{
{{methodBody}}
}
Expand Down

0 comments on commit 70dc869

Please sign in to comment.