提交 7092abb3 编写于 作者: R Ravi Chande

Add additional tests for completion in tuple declarations

上级 57cf9fd2
......@@ -8965,7 +8965,7 @@ public async Task TupleTypeAtMemberLevel3()
await VerifyItemExistsAsync(@"
class C
{
(C,
(C, $$
}", "C");
}
......@@ -8979,5 +8979,48 @@ class C
(C, $$)
}", "C");
}
[WorkItem(14127, "https://github.com/dotnet/roslyn/issues/14127")]
[Fact, Trait(Traits.Feature, Traits.Features.Completion)]
public async Task TupleTypeInForeach()
{
await VerifyItemExistsAsync(@"
class C
{
void M()
{
foreach ((C, $$
}
}", "C");
}
[WorkItem(14127, "https://github.com/dotnet/roslyn/issues/14127")]
[Fact, Trait(Traits.Feature, Traits.Features.Completion)]
public async Task TupleTypeInParameterList()
{
await VerifyItemExistsAsync(@"
class C
{
void M((C, $$)
{
}
}", "C");
}
[WorkItem(14127, "https://github.com/dotnet/roslyn/issues/14127")]
[Fact, Trait(Traits.Feature, Traits.Features.Completion)]
public async Task TupleTypeInNameOf()
{
await VerifyItemExistsAsync(@"
class C
{
void M(($$)
{
var x = nameof((C, $$
}
}", "C");
}
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册