/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/EditorFeatures/VisualBasicTest/Recommendations/Queries/IntoKeywordRecommenderTests.vb
42 строки
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.Queries <Trait(Traits.Feature, Traits.Features.KeywordRecommending)> Public Class IntoKeywordRecommenderTests Inherits RecommenderTests <Fact, WorkItem("http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/543191")> Public Sub IntoAfterAnonymousObjectCreationExprTest() Dim method = <MethodBody> Dim q1 = From num In New Integer() {4, 5} Group By i1 = New With {.Key = num} | </MethodBody> VerifyRecommendationsAreExactly(method, "Into") End Sub <Fact, WorkItem("http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/543193")> Public Sub IntoAfterExprRangeVariableInGroupByTest() Dim method = <MethodBody> Dim q1 = From num In New Integer() {4, 5} Group By num | </MethodBody> VerifyRecommendationsAreExactly(method, "Into") End Sub <Fact, WorkItem("http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/543214")> Public Sub IntoImmediatelyAfterAnonymousObjectCreationExprTest() Dim method = <MethodBody> Dim q1 = From num In New Integer() {4, 5} Group By i1 = New With {.Key = num}| </MethodBody> VerifyRecommendationsAreExactly(method, "Into") End Sub <Fact, WorkItem("http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/543232")> Public Sub IntoAfterNestedAggregateFromClauseTest() VerifyRecommendationsContain(<MethodBody>Dim q1 = Aggregate i1 In arr From i4 In arr |</MethodBody>, "Into") End Sub End Class End Namespace