/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/EditorFeatures/VisualBasicTest/Recommendations/Declarations/AttributeScopesKeywordRecommenderTests.vb
63 строки
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. Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.Recommendations.Declarations <Trait(Traits.Feature, Traits.Features.KeywordRecommending)> Public Class AttributeScopeKeywordRecommenderTests Inherits RecommenderTests <Fact> Public Sub AttributeScopesInFileTest() VerifyRecommendationsContain(<File><|</File>, "Assembly", "Module") End Sub <Fact> Public Sub AttributeScopesInFileAfterImportsTest() VerifyRecommendationsContain(<File> Imports Goo <|</File>, "Assembly", "Module") End Sub <Fact> Public Sub AttributeScopesInFileBeforeClassTest() VerifyRecommendationsContain(<File> <| Class Goo End Class</File>, "Assembly", "Module") End Sub <Fact> Public Sub AttributeScopesInFileInsideClassTest() VerifyRecommendationsAreExactly(<File> Class Goo <| End Class</File>, {"Global"}) End Sub <Fact, WorkItem("http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542207")> Public Sub AttributeScopesInFileAtStartOfMalformedAttributeTest() VerifyRecommendationsContain(<File><![CDATA[<|Assembly: AssemblyDelaySignAttribute(True)>]]></File>, "Assembly", "Module") End Sub <Fact> Public Sub AttributeScopesAtEndOfFileTest() VerifyRecommendationsContain(<File> Class goo End Class <| </File>, "Assembly", "Module") End Sub <Fact, WorkItem("http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530953")> Public Sub AttributeScopesAfterEolTest() VerifyRecommendationsContain(<File> Class goo End Class < | </File>, "Assembly", "Module") End Sub End Class End Namespace