From ccd35fac3bc2c1b279e29ce6b36afe5209a1b52e Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Thu, 11 Mar 2021 13:27:18 -0800 Subject: [PATCH] Add missing test attributes --- .../GenerateFromUsage/GenerateMethodCrossLanguageTests.vb | 1 + src/EditorFeatures/Test2/GoToBase/VisuaBasicGoToBaseTests.vb | 4 ++++ .../ChangeSignature/AddParameterTests.Cascading.vb | 1 + .../ChangeSignature/ReorderParametersTests.Cascading.vb | 1 + .../Classification/SyntacticClassifierTests.vb | 1 + .../ConvertForEachToFor/ConvertForEachToForTests.vb | 1 + .../Diagnostics/FullyQualify/FullyQualifyTests.vb | 1 + .../RefactoringHelpers/RefactoringHelpersTests.vb | 1 + .../Test/ChangeSignature/ChangeSignatureViewModelTests.vb | 1 + 9 files changed, 12 insertions(+) diff --git a/src/EditorFeatures/Test2/Diagnostics/GenerateFromUsage/GenerateMethodCrossLanguageTests.vb b/src/EditorFeatures/Test2/Diagnostics/GenerateFromUsage/GenerateMethodCrossLanguageTests.vb index 0032dd260d0f8..e69ef686d7322 100644 --- a/src/EditorFeatures/Test2/Diagnostics/GenerateFromUsage/GenerateMethodCrossLanguageTests.vb +++ b/src/EditorFeatures/Test2/Diagnostics/GenerateFromUsage/GenerateMethodCrossLanguageTests.vb @@ -741,6 +741,7 @@ End Module]]> Await TestAsync(input, expected, onAfterWorkspaceCreated:=Sub(w) w.SetTestLogger(AddressOf _outputHelper.WriteLine)) End Function + Public Async Function GenerateMethodUsingTypeConstraint_3BaseTypeConstraints_CommonDerived() As Task Dim input = diff --git a/src/EditorFeatures/Test2/GoToBase/VisuaBasicGoToBaseTests.vb b/src/EditorFeatures/Test2/GoToBase/VisuaBasicGoToBaseTests.vb index f31430f0989d4..038523f804b2c 100644 --- a/src/EditorFeatures/Test2/GoToBase/VisuaBasicGoToBaseTests.vb +++ b/src/EditorFeatures/Test2/GoToBase/VisuaBasicGoToBaseTests.vb @@ -191,6 +191,8 @@ interface I sub [|M|]() end interface") End Function + + Public Shared Async Function TestWithOneMethodImplementation_02() As Task Await TestAsync( "class C @@ -204,6 +206,8 @@ interface I sub [|M|]() end interface") End Function + + Public Shared Async Function TestWithOneMethodImplementation_03() As Task Await TestAsync( "class C diff --git a/src/EditorFeatures/VisualBasicTest/ChangeSignature/AddParameterTests.Cascading.vb b/src/EditorFeatures/VisualBasicTest/ChangeSignature/AddParameterTests.Cascading.vb index 6205a7df72d9c..ef29ec3c08640 100644 --- a/src/EditorFeatures/VisualBasicTest/ChangeSignature/AddParameterTests.Cascading.vb +++ b/src/EditorFeatures/VisualBasicTest/ChangeSignature/AddParameterTests.Cascading.vb @@ -376,6 +376,7 @@ End Class]]>.NormalizedValue() Await TestChangeSignatureViaCommandAsync(LanguageNames.VisualBasic, markup, updatedSignature:=permutation, expectedUpdatedInvocationDocumentCode:=updatedCode) End Function + Public Shared Async Function TestAddParameter_Cascade_ToOverridingMethod_IncludeParamTags() As Task Dim markup = .NormalizedValue() Await TestChangeSignatureViaCommandAsync(LanguageNames.VisualBasic, markup, updatedSignature:=permutation, expectedUpdatedInvocationDocumentCode:=updatedCode) End Function + Public Shared Async Function TestReorderParameters_Cascade_ToOverridingMethod_IncludeParamTags() As Task Dim markup = Public Async Function TestPreprocessorConst2(testHost As TestHost) As Task Await TestInNamespaceAsync("#Const DebugCode = True", testHost, diff --git a/src/EditorFeatures/VisualBasicTest/ConvertForEachToFor/ConvertForEachToForTests.vb b/src/EditorFeatures/VisualBasicTest/ConvertForEachToFor/ConvertForEachToForTests.vb index 31955566cda7d..afa677242c045 100644 --- a/src/EditorFeatures/VisualBasicTest/ConvertForEachToFor/ConvertForEachToForTests.vb +++ b/src/EditorFeatures/VisualBasicTest/ConvertForEachToFor/ConvertForEachToForTests.vb @@ -421,6 +421,7 @@ End Class Await TestInRegularAndScriptAsync(initial, expected) End Function + Public Async Function StructPropertyReadFromAndAssignedToLocal() As Task Dim initial = " Class Test diff --git a/src/EditorFeatures/VisualBasicTest/Diagnostics/FullyQualify/FullyQualifyTests.vb b/src/EditorFeatures/VisualBasicTest/Diagnostics/FullyQualify/FullyQualifyTests.vb index 54ba7c795cd79..1f73f8d89a878 100644 --- a/src/EditorFeatures/VisualBasicTest/Diagnostics/FullyQualify/FullyQualifyTests.vb +++ b/src/EditorFeatures/VisualBasicTest/Diagnostics/FullyQualify/FullyQualifyTests.vb @@ -53,6 +53,7 @@ Namespace SomeNamespace End Namespace") End Function + Public Async Function TestOrdering() As Task Dim code = " namespace System.Windows.Controls diff --git a/src/EditorFeatures/VisualBasicTest/RefactoringHelpers/RefactoringHelpersTests.vb b/src/EditorFeatures/VisualBasicTest/RefactoringHelpers/RefactoringHelpersTests.vb index f945dc230a3bc..cee631811ab79 100644 --- a/src/EditorFeatures/VisualBasicTest/RefactoringHelpers/RefactoringHelpersTests.vb +++ b/src/EditorFeatures/VisualBasicTest/RefactoringHelpers/RefactoringHelpersTests.vb @@ -65,6 +65,7 @@ end class" Await TestAsync(Of ForBlockSyntax)(testText) End Function + Public Async Function TestForeachBlockByHeaderExtraction() As Task Dim testText = " Imports System diff --git a/src/VisualStudio/Core/Test/ChangeSignature/ChangeSignatureViewModelTests.vb b/src/VisualStudio/Core/Test/ChangeSignature/ChangeSignatureViewModelTests.vb index 5224cf91c24bb..68b87da1468af 100644 --- a/src/VisualStudio/Core/Test/ChangeSignature/ChangeSignatureViewModelTests.vb +++ b/src/VisualStudio/Core/Test/ChangeSignature/ChangeSignatureViewModelTests.vb @@ -272,6 +272,7 @@ class MyClass type:="string?") End Function + Public Async Function ChangeSignature_VerifyParamsArrayFunctionality() As Tasks.Task Dim markup =