提交 734bb219 编写于 作者: G Gen Lu

Fix tests

上级 768a7b13
......@@ -2585,7 +2585,7 @@ class Program
{
void M()
{
Action<int> goo = x => [|x.Goo|];
Action<int> goo = x => [|x.ToString()|];
}
}",
@"using System;
......@@ -2596,7 +2596,7 @@ void M()
{
Action<int> goo = x =>
{
object {|Rename:goo1|} = x.Goo;
string {|Rename:v|} = x.ToString();
};
}
}");
......
......@@ -432,11 +432,13 @@ End Class"
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsIntroduceVariable)>
Public Async Function TestSharedModifierAbsentInGeneratedModuleFields() As Task
Dim source = "Module Program
Private ReadOnly y As Integer = 1
Dim x = Goo([|2 + y|])
End Module"
Dim expected = "Module Program
Private ReadOnly {|Rename:p|} As Object = 2 + y
Dim x = Goo(p)
Private ReadOnly y As Integer = 1
Private ReadOnly {|Rename:v|} As Integer = 2 + y
Dim x = Goo(v)
End Module"
Await TestInRegularAndScriptAsync(source, expected)
End Function
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册