/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/EditorFeatures/VisualBasicTest/Recommendations/PreprocessorDirectives/IfDirectiveKeywordRecommenderTests.vb
40 строк
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.Recommendations.PreprocessorDirectives <Trait(Traits.Feature, Traits.Features.KeywordRecommending)> Public Class IfDirectiveKeywordRecommenderTests Inherits RecommenderTests <Fact> Public Sub HashIfInFileTest() VerifyRecommendationsContain(<File>|</File>, "#If") End Sub <Fact> Public Sub HashIfInMethodBodyTest() VerifyRecommendationsContain(<MethodBody>|</MethodBody>, "#If") End Sub <Fact> Public Sub NotInEnumBlockMemberDeclarationTest() VerifyRecommendationsMissing(<File> Enum goo | End enum </File>, "#If") End Sub <Fact, WorkItem("https://github.com/dotnet/roslyn/issues/6389")> Public Sub NotAfterHashRegionTest() VerifyRecommendationsMissing(<File> Class C #Region | End Class </File>, "#If") End Sub End Class End Namespace