diff --git a/src/EditorFeatures/CSharpTest/ExtractMethod/ExtractMethodTests.LanguageInteraction.cs b/src/EditorFeatures/CSharpTest/ExtractMethod/ExtractMethodTests.LanguageInteraction.cs index c87fd34affbf1fcc2b62e0c35e7f8e3572ab47d5..dd2bb3f7626ef62d618dcf6e47d388d4736599f2 100644 --- a/src/EditorFeatures/CSharpTest/ExtractMethod/ExtractMethodTests.LanguageInteraction.cs +++ b/src/EditorFeatures/CSharpTest/ExtractMethod/ExtractMethodTests.LanguageInteraction.cs @@ -1989,16 +1989,20 @@ public void Test() Console.WriteLine(x);|] } }"; - var expected = @"class Program + var expected = @"using System; + +class C { - public Program(string a, int b) - : this(a, NewMethod()) + public void Test() { + int x = 0; + NewMethod(x); } - private static Program NewMethod() + private static void NewMethod(int x) { - return new Program(); + void Local() { } + Console.WriteLine(x); } }";