/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/EditorFeatures/VisualBasicTest/EndConstructGeneration/PreprocessorIfTests.vb
37 строк
1 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. Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.EndConstructGeneration <[UseExportProvider]> <Trait(Traits.Feature, Traits.Features.EndConstructGeneration)> Public Class PreprocessorIfTests <WpfFact> Public Async Function ApplyAfterHashIf() As Task Await VerifyStatementEndConstructAppliedAsync( before:="#If True Then", beforeCaret:={0, -1}, after:="#If True Then #End If", afterCaret:={1, -1}) End Function <WpfFact> Public Async Function DoNotApplyAfterHashIfWhenEndIfExists() As Task Await VerifyStatementEndConstructNotAppliedAsync( text:="#If True Then #End If", caret:={0, -1}) End Function <WpfFact, WorkItem("http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537976")> Public Async Function DoNotApplyAfterHashElseIfWhenEndIfExists() As Task Await VerifyStatementEndConstructNotAppliedAsync( text:="#If True Then #ElseIf True Then #End If", caret:={1, -1}) End Function End Class End Namespace