/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/EditorFeatures/VisualBasicTest/Organizing/AbstractOrganizerTests.vb
21 строка
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. Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.Editor.UnitTests.Extensions Imports Microsoft.CodeAnalysis.Organizing Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.Organizing <[UseExportProvider]> Public MustInherit Class AbstractOrganizerTests Protected Shared Async Function CheckAsync(initial As XElement, final As XElement) As System.Threading.Tasks.Task Using workspace = TestWorkspace.CreateVisualBasic(initial.NormalizedValue) Dim document = workspace.CurrentSolution.GetDocument(workspace.Documents.First().Id) Dim newRoot = Await (Await OrganizingService.OrganizeAsync(document)).GetSyntaxRootAsync() Assert.Equal(final.NormalizedValue, newRoot.ToFullString()) End Using End Function End Class End Namespace