diff --git a/src/EditorFeatures/CSharpTest/CodeActions/ConvertLinq/ConvertForEachToLinqQueryTests.cs b/src/EditorFeatures/CSharpTest/CodeActions/ConvertLinq/ConvertForEachToLinqQueryTests.cs index c3c6cdf3afe2681dc38dd6a1f810aa7580c57ca5..1c7950259f2b0b24082cd12bea1b546e4aa505b7 100644 --- a/src/EditorFeatures/CSharpTest/CodeActions/ConvertLinq/ConvertForEachToLinqQueryTests.cs +++ b/src/EditorFeatures/CSharpTest/CodeActions/ConvertLinq/ConvertForEachToLinqQueryTests.cs @@ -1612,7 +1612,7 @@ class C IEnumerable Test() { - return (new[] { 1, 2, 3 }).Select(x => x); + return new[] { 1, 2, 3 }; } } "; @@ -4126,11 +4126,7 @@ int M(IEnumerable nums) /*21*/ return /*22*/ /* 1 *//* 2 *//* 3 *//* 4 */// 5 /*23*/ -(nums /* 12 */.Select( -/* 6 *//* 7 *//* 14 */// 15 -/* 9 */x /* 10 */ => x/* 10 *//*19*///20 -/* 8 *//* 11 */// 13 -)).Count()/* 16 *//* 17 *///18 +(nums /* 12 */).Count()/* 16 *//* 17 *///18 ; //24 } }";