/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/EditorFeatures/VisualBasicTest/Recommendations/Statements/IfKeywordRecommenderTests.vb
61 строка
2 KB
Cyrus Najmabadi
Apply test attributes consistently
12 сен 2022, 08:59
12 сен 2022, 08:59
45dee7d
Код
Авторство
О чём код?
' 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.Statements <Trait(Traits.Feature, Traits.Features.KeywordRecommending)> Public Class IfKeywordRecommenderTests Inherits RecommenderTests <Fact> Public Sub IfInMethodBodyTest() VerifyRecommendationsContain(<MethodBody>|</MethodBody>, "If") End Sub <Fact> Public Sub IfInMultiLineLambdaTest() VerifyRecommendationsContain(<MethodBody> Dim x = Sub() | End Sub</MethodBody>, "If") End Sub <Fact> Public Sub IfInSingleLineLambdaTest() VerifyRecommendationsContain(<MethodBody> Dim x = Sub() |</MethodBody>, "If") End Sub <Fact> Public Sub IfAfterElseInMultiLine1Test() VerifyRecommendationsContain(<MethodBody> If True Then Else | End If</MethodBody>, "If") End Sub <Fact> Public Sub IfAfterElseInMultiLine2Test() VerifyRecommendationsContain(<MethodBody> If True Then Else If Else | End If</MethodBody>, "If") End Sub <Fact> Public Sub IfAfterElseInSingleLineIfTest() VerifyRecommendationsContain(<MethodBody>If True Then Stop Else |</MethodBody>, "If") End Sub <Fact> Public Sub IfAfterExternalSourceDirectiveTest() VerifyRecommendationsContain( <MethodBody> #ExternalSource ("file", 1) | #End ExternalSource </MethodBody>, "If") End Sub End Class End Namespace