提交 104768ef 编写于 作者: C CyrusNajmabadi

Add test.

上级 07912a97
......@@ -1950,5 +1950,33 @@ class Program
Assert.Contains("args:", state.GetLineTextFromCaretPosition())
End Using
End Function
<WorkItem(13481, "https://github.com/dotnet/roslyn/issues/13481")>
<WpfFact, Trait(Traits.Feature, Traits.Features.Completion)>
Public Async Function TestBackspaceSelection1() As Task
Using state = TestState.CreateCSharpTestState(
<Document><![CDATA[
using System;
class Program
{
static void Main()
{
DateTimeOffset$$
}
}
]]></Document>)
state.Workspace.Options = state.Workspace.Options.WithChangedOption(
CompletionOptions.TriggerOnDeletion, LanguageNames.CSharp, True)
For Each c In "Offset"
state.SendBackspace()
Await state.WaitForAsynchronousOperationsAsync()
Next
Await state.AssertCompletionSession()
Await state.AssertSelectedCompletionItem("DateTime")
End Using
End Function
End Class
End Namespace
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册