Skip to content

Commit ea37863

Browse files
committed
Update Introduce Local test expectations
1 parent 28828d9 commit ea37863

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/Razor/test/Microsoft.VisualStudioCode.RazorExtension.Test/Endpoints/Shared/CodeActions/CSharpCodeActionTests.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ @using System.Linq
7878
await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeRefactoringProviderNames.UseExpressionBody);
7979
}
8080

81-
[Fact(Skip = "Roslyn code refactoring provider is not finding the expression")]
81+
[Fact]
8282
public async Task IntroduceLocal()
8383
{
8484
var input = """
@@ -90,7 +90,7 @@ @using System.Linq
9090
{
9191
void M(string[] args)
9292
{
93-
if ([|args.First()|].Length > 0)
93+
if (args.First()[||].Length > 0)
9494
{
9595
}
9696
if (args.First().Length > 0)
@@ -110,8 +110,8 @@ @using System.Linq
110110
{
111111
void M(string[] args)
112112
{
113-
string v = args.First();
114-
if (v.Length > 0)
113+
int length = args.First().Length;
114+
if (length > 0)
115115
{
116116
}
117117
if (args.First().Length > 0)
@@ -125,7 +125,7 @@ void M(string[] args)
125125
await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeRefactoringProviderNames.IntroduceVariable);
126126
}
127127

128-
[Fact(Skip = "Roslyn code refactoring provider is not finding the expression")]
128+
[Fact]
129129
public async Task IntroduceLocal_All()
130130
{
131131
var input = """
@@ -137,7 +137,7 @@ @using System.Linq
137137
{
138138
void M(string[] args)
139139
{
140-
if ([|args.First()|].Length > 0)
140+
if (args.First()[||].Length > 0)
141141
{
142142
}
143143
if (args.First().Length > 0)
@@ -157,11 +157,11 @@ @using System.Linq
157157
{
158158
void M(string[] args)
159159
{
160-
string v = args.First();
161-
if (v.Length > 0)
160+
int length = args.First().Length;
161+
if (length > 0)
162162
{
163163
}
164-
if (v.Length > 0)
164+
if (length > 0)
165165
{
166166
}
167167
}

0 commit comments

Comments
 (0)