/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/EditorFeatures/VisualBasicTest/ChangeSignature/ChangeSignatureTests.vb
77 строк
2 KB
Cyrus Najmabadi
Organize VB imports
27 июн 2025, 21:53
27 июн 2025, 21:53
e9c47fd
Код
Авторство
О чём код?
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports Microsoft.CodeAnalysis.Editor.UnitTests.ChangeSignature Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.ChangeSignature <Trait(Traits.Feature, Traits.Features.ChangeSignature)> Partial Public Class ChangeSignatureTests Inherits AbstractChangeSignatureTests <WpfFact, WorkItem("https://github.com/dotnet/roslyn/issues/17309")> Public Async Function TestNotInLeadingWhitespace() As Task Dim markup = " class C [||] sub Goo(i as integer, j as integer) end sub end class " Await TestChangeSignatureViaCodeActionAsync(markup, expectedCodeAction:=False) End Function <WpfFact, WorkItem("https://github.com/dotnet/roslyn/issues/17309")> Public Async Function TestNotInLeadingTrivia1() As Task Dim markup = " class C ' [||] sub Goo(i as integer, j as integer) end sub end class " Await TestChangeSignatureViaCodeActionAsync(markup, expectedCodeAction:=False) End Function <WpfFact, WorkItem("https://github.com/dotnet/roslyn/issues/17309")> Public Async Function TestNotInLeadingTrivia2() As Task Dim markup = " class C [||] ' sub Goo(i as integer, j as integer) end sub end class " Await TestChangeSignatureViaCodeActionAsync(markup, expectedCodeAction:=False) End Function <WpfFact, WorkItem("https://github.com/dotnet/roslyn/issues/17309")> Public Async Function TestNotInLeadingAttributes1() As Task Dim markup = " class C [||]<X> sub Goo(i as integer, j as integer) end sub end class " Await TestChangeSignatureViaCodeActionAsync(markup, expectedCodeAction:=False) End Function <WpfFact, WorkItem("https://github.com/dotnet/roslyn/issues/17309")> Public Async Function TestNotInLeadingAttributes2() As Task Dim markup = " class C <X>[||] sub Goo(i as integer, j as integer) end sub end class " Await TestChangeSignatureViaCodeActionAsync(markup, expectedCodeAction:=False) End Function End Class End Namespace