提交 000cb322 编写于 作者: O Omar Tawfik

Test that verifies predefined keywords are in completion for switch cases

上级 577960ce
......@@ -317,5 +317,28 @@ public async Task FormattingAfterCompletionCommit_InSingleLineMethod()
}";
await VerifyProviderCommitAsync(markupBeforeCommit, "return", expectedCodeAfterCommit, commitChar: ';', textTypedSoFar: "return");
}
[WorkItem(14218, "https://github.com/dotnet/roslyn/issues/14218")]
[WpfFact, Trait(Traits.Feature, Traits.Features.Completion)]
public async Task PredefinedTypeKeywordsShouldBeRecommendedAfterCaseInASwitch()
{
var text = @"
class Program
{
public static void Test()
{
object o = null;
switch (o)
{
case $$
}
}
}";
await VerifyItemExistsAsync(text, "int");
await VerifyItemExistsAsync(text, "string");
await VerifyItemExistsAsync(text, "byte");
await VerifyItemExistsAsync(text, "char");
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册