diff --git a/src/EditorFeatures/CSharpTest/Completion/CompletionProviders/ExtensionMethodImportCompletionProviderTests.cs b/src/EditorFeatures/CSharpTest/Completion/CompletionProviders/ExtensionMethodImportCompletionProviderTests.cs index c84b5c62e4351ab9d750b8b128d46fa0cb5f7522..5e7195ca9ebc34bb2f8b427c6dabd9fd9276bbf0 100644 --- a/src/EditorFeatures/CSharpTest/Completion/CompletionProviders/ExtensionMethodImportCompletionProviderTests.cs +++ b/src/EditorFeatures/CSharpTest/Completion/CompletionProviders/ExtensionMethodImportCompletionProviderTests.cs @@ -76,34 +76,16 @@ private static IEnumerable> BuiltInTypes { get { - var predefinedTypes = new List> - { - new List() - { "int", "Int32", "System.Int32" }, - new List() - { "float", "Single", "System.Single" }, - new List() - { "uint", "UInt32", "System.UInt32" }, - new List() - { "bool", "Boolean", "System.Boolean"}, - new List() - { "string", "String", "System.String"}, - new List() - { "object", "Object", "System.Object"}, - }; - + var predefinedTypes = new List() { "string", "String", "System.String" }; var arraySuffixes = new[] { "", "[]", "[,]" }; - foreach (var group in predefinedTypes) + foreach (var type1 in predefinedTypes) { - foreach (var type1 in group) + foreach (var type2 in predefinedTypes) { - foreach (var type2 in group) + foreach (var suffix in arraySuffixes) { - foreach (var suffix in arraySuffixes) - { - yield return new List() { type1 + suffix, type2 + suffix }; - } + yield return new List() { type1 + suffix, type2 + suffix }; } } }