/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/VisualStudio/Core/Test/CodeCleanupExportTests.vb
23 строки
1 KB
Sam Harwell
Add test for unique FixIdDefinition exports
23 ноя 2021, 02:12
23 ноя 2021, 02:12
eb592f3
Код
Авторство
О чём код?
' 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.Test.Utilities Imports Microsoft.VisualStudio.Language.CodeCleanUp Imports Microsoft.VisualStudio.LanguageServices.FindUsages Imports Microsoft.VisualStudio.LanguageServices.UnitTests Namespace Tests <UseExportProvider> Public Class CodeCleanupExportTests <Fact> Public Sub TestUniqueFixId() Dim exportProvider = VisualStudioTestCompositions.LanguageServices.ExportProviderFactory.CreateExportProvider() Dim fixIdDefinitions = exportProvider.GetExports(Of FixIdDefinition, NameMetadata)() Dim groups = fixIdDefinitions.GroupBy(Function(x) x.Metadata.Name).Where(Function(x) x.Count() > 1) Assert.Empty(groups.Select(Function(group) group.Select(Function(part) part.Metadata.Name))) End Sub End Class End Namespace