From 6dba366c48fdfb2d1a81e0403d0b24de6fec3529 Mon Sep 17 00:00:00 2001 From: Gen Lu Date: Wed, 10 Jul 2019 12:11:53 -0700 Subject: [PATCH] Fix tests --- .../CompletionProviders/TypeImportCompletionProviderTests.cs | 2 +- .../CompletionProviders/TypeImportCompletionProviderTests.vb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EditorFeatures/CSharpTest/Completion/CompletionProviders/TypeImportCompletionProviderTests.cs b/src/EditorFeatures/CSharpTest/Completion/CompletionProviders/TypeImportCompletionProviderTests.cs index 09fe4c889aa..a8f84ec837d 100644 --- a/src/EditorFeatures/CSharpTest/Completion/CompletionProviders/TypeImportCompletionProviderTests.cs +++ b/src/EditorFeatures/CSharpTest/Completion/CompletionProviders/TypeImportCompletionProviderTests.cs @@ -928,7 +928,7 @@ class Program { } var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp); await VerifyTypeImportItemExistsAsync(markup, "My", glyph: (int)Glyph.ClassPublic, inlineDescription: "Foo", expectedDescriptionOrNull: "class Foo.MyAttribute"); - await VerifyTypeImportItemExistsAsync(markup, "MyAttributeWithoutSuffix", glyph: (int)Glyph.ClassPublic, inlineDescription: "Foo", expectedDescriptionOrNull: "class Foo.MyAttributeWithoutSuffix"); + await VerifyTypeImportItemIsAbsentAsync(markup, "MyAttributeWithoutSuffix", inlineDescription: "Foo"); // We intentionally ignore attribute types without proper suffix for perf reason await VerifyTypeImportItemIsAbsentAsync(markup, "MyAttribute", inlineDescription: "Foo"); await VerifyTypeImportItemIsAbsentAsync(markup, "MyClass", inlineDescription: "Foo"); } diff --git a/src/EditorFeatures/VisualBasicTest/Completion/CompletionProviders/TypeImportCompletionProviderTests.vb b/src/EditorFeatures/VisualBasicTest/Completion/CompletionProviders/TypeImportCompletionProviderTests.vb index 6e30bedef1a..9c740339289 100644 --- a/src/EditorFeatures/VisualBasicTest/Completion/CompletionProviders/TypeImportCompletionProviderTests.vb +++ b/src/EditorFeatures/VisualBasicTest/Completion/CompletionProviders/TypeImportCompletionProviderTests.vb @@ -59,7 +59,7 @@ End Class]]>.Value Dim markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.VisualBasic) Await VerifyItemExistsAsync(markup, "My", glyph:=Glyph.ClassPublic, inlineDescription:="Foo", expectedDescriptionOrNull:="Class Foo.MyAttribute") - Await VerifyItemExistsAsync(markup, "MyAttributeWithoutSuffix", glyph:=Glyph.ClassPublic, inlineDescription:="Foo", expectedDescriptionOrNull:="Class Foo.MyAttributeWithoutSuffix") + Await VerifyItemIsAbsentAsync(markup, "MyAttributeWithoutSuffix", inlineDescription:="Foo") ' We intentionally ignore attribute types without proper suffix for perf reason Await VerifyItemIsAbsentAsync(markup, "MyAttribute", inlineDescription:="Foo") Await VerifyItemIsAbsentAsync(markup, "MyVBClass", inlineDescription:="Foo") End Function -- GitLab