From 3ebfe28ed727a76c6df94f6456d3469308bf4473 Mon Sep 17 00:00:00 2001 From: Martin Strecker Date: Fri, 25 May 2018 10:13:29 +0200 Subject: [PATCH] Unskip test and add test for invocation inside tuple expression. --- .../DeclarationNameCompletionProviderTests.cs | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/src/EditorFeatures/CSharpTest/Completion/CompletionProviders/DeclarationNameCompletionProviderTests.cs b/src/EditorFeatures/CSharpTest/Completion/CompletionProviders/DeclarationNameCompletionProviderTests.cs index a950519235e..f76e78bba83 100644 --- a/src/EditorFeatures/CSharpTest/Completion/CompletionProviders/DeclarationNameCompletionProviderTests.cs +++ b/src/EditorFeatures/CSharpTest/Completion/CompletionProviders/DeclarationNameCompletionProviderTests.cs @@ -787,7 +787,7 @@ void M((int, System.Array $$),int) } [WorkItem(22342, "https://github.com/dotnet/roslyn/issues/22342")] - [Fact(Skip = "Not yet supported"), Trait(Traits.Feature, Traits.Features.Completion)] + [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async void TupleElementTypeInference() { var markup = @" @@ -799,7 +799,11 @@ void Do() } } "; - await VerifyItemExistsAsync(markup, "action"); + // Currently not supported: + await VerifyItemIsAbsentAsync(markup, "action"); + // see https://github.com/dotnet/roslyn/issues/27138 + // after the issue ist fixed we expect this to work: + // await VerifyItemExistsAsync(markup, "action"); } [WorkItem(22342, "https://github.com/dotnet/roslyn/issues/22342")] @@ -818,6 +822,23 @@ void Do() await VerifyItemExistsAsync(markup, "action"); } + [WorkItem(22342, "https://github.com/dotnet/roslyn/issues/22342")] + [Fact, Trait(Traits.Feature, Traits.Features.Completion)] + public async void TupleElementInvocationInsideTuple() + { + var markup = @" +class Test +{ + void Do() + { + int M(int i1, int i2) => i1; + var t=(e1: 1, e2: M(1, $$)); + } +} +"; + await VerifyNoItemsExistAsync(markup); + } + [WorkItem(17987, "https://github.com/dotnet/roslyn/issues/17987")] [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async void Pluralize1() -- GitLab