From 9d88a35d318f5559c08b74d471e551fd548676e6 Mon Sep 17 00:00:00 2001 From: Gen Lu Date: Thu, 30 Jan 2020 16:44:37 -0800 Subject: [PATCH] Remove some test input to reduce execution time --- ...sionMethodImportCompletionProviderTests.cs | 28 ++++--------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/src/EditorFeatures/CSharpTest/Completion/CompletionProviders/ExtensionMethodImportCompletionProviderTests.cs b/src/EditorFeatures/CSharpTest/Completion/CompletionProviders/ExtensionMethodImportCompletionProviderTests.cs index c84b5c62e43..5e7195ca9eb 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 }; } } } -- GitLab