Skip to content

Commit

Permalink
Add missing test attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Mar 11, 2021
1 parent 54a7b55 commit ccd35fa
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,7 @@ End Module]]>
Await TestAsync(input, expected, onAfterWorkspaceCreated:=Sub(w) w.SetTestLogger(AddressOf _outputHelper.WriteLine))
End Function

<WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateMethod)>
Public Async Function GenerateMethodUsingTypeConstraint_3BaseTypeConstraints_CommonDerived() As Task
Dim input =
<Workspace>
Expand Down
4 changes: 4 additions & 0 deletions src/EditorFeatures/Test2/GoToBase/VisuaBasicGoToBaseTests.vb
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ interface I
sub [|M|]()
end interface")
End Function

<Fact, Trait(Traits.Feature, Traits.Features.GoToBase)>
Public Shared Async Function TestWithOneMethodImplementation_02() As Task
Await TestAsync(
"class C
Expand All @@ -204,6 +206,8 @@ interface I
sub [|M|]()
end interface")
End Function

<Fact, Trait(Traits.Feature, Traits.Features.GoToBase)>
Public Shared Async Function TestWithOneMethodImplementation_03() As Task
Await TestAsync(
"class C
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ End Class]]></Text>.NormalizedValue()
Await TestChangeSignatureViaCommandAsync(LanguageNames.VisualBasic, markup, updatedSignature:=permutation, expectedUpdatedInvocationDocumentCode:=updatedCode)
End Function

<Fact, Trait(Traits.Feature, Traits.Features.ChangeSignature)>
Public Shared Async Function TestAddParameter_Cascade_ToOverridingMethod_IncludeParamTags() As Task

Dim markup = <Text><![CDATA[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ End Class]]></Text>.NormalizedValue()
Await TestChangeSignatureViaCommandAsync(LanguageNames.VisualBasic, markup, updatedSignature:=permutation, expectedUpdatedInvocationDocumentCode:=updatedCode)
End Function

<Fact, Trait(Traits.Feature, Traits.Features.ChangeSignature)>
Public Shared Async Function TestReorderParameters_Cascade_ToOverridingMethod_IncludeParamTags() As Task

Dim markup = <Text><![CDATA[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3184,6 +3184,7 @@ Imports Bar=Quux"
Number("1"))
End Function

<Theory, CombinatorialData>
Public Async Function TestPreprocessorConst2(testHost As TestHost) As Task
Await TestInNamespaceAsync("#Const DebugCode = True",
testHost,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ End Class
Await TestInRegularAndScriptAsync(initial, expected)
End Function

<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertForEachToFor)>
Public Async Function StructPropertyReadFromAndAssignedToLocal() As Task
Dim initial = "
Class Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Namespace SomeNamespace
End Namespace")
End Function

<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsFullyQualify)>
Public Async Function TestOrdering() As Task
Dim code = "
namespace System.Windows.Controls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ end class"
Await TestAsync(Of ForBlockSyntax)(testText)
End Function

<Fact>
Public Async Function TestForeachBlockByHeaderExtraction() As Task
Dim testText = "
Imports System
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ class MyClass
type:="string?")
End Function

<Fact, Trait(Traits.Feature, Traits.Features.ChangeSignature)>
<WorkItem(8437, "https://github.com/dotnet/roslyn/issues/8437")>
Public Async Function ChangeSignature_VerifyParamsArrayFunctionality() As Tasks.Task
Dim markup = <Text><![CDATA[
Expand Down

0 comments on commit ccd35fa

Please sign in to comment.