提交 8e22a513 编写于 作者: C chborl

Added tests for `out` and `ref` completion in local function

Tests in response to issue #22253
上级 72368478
......@@ -405,5 +405,13 @@ public async Task TestInCrefParameterList()
await VerifyKeywordAsync(text);
}
[WorkItem(22253, "https://github.com/dotnet/roslyn/issues/22253")]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestInLocalFunction()
{
await VerifyKeywordAsync(AddInsideMethod(
@"void F(int x, $$"));
}
}
}
......@@ -822,6 +822,15 @@ public async Task TestInConditionalExpressionFalseBranch()
await VerifyKeywordWithRefsAsync(AddInsideMethod(@"
int x = 0;
ref int y = ref true ? ref x : $$"));
}
[WorkItem(22253, "https://github.com/dotnet/roslyn/issues/22253")]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestInLocalMethod()
{
await VerifyKeywordWithRefsAsync(AddInsideMethod(
@" void Goo(int test, $$) "));
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册