提交 3ebfe28e 编写于 作者: M Martin Strecker

Unskip test and add test for invocation inside tuple expression.

上级 82e69433
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册