提交 3b2a9a95 编写于 作者: G Gen Lu

Add test

上级 852aa0cf
......@@ -730,5 +730,31 @@ $$</Document>
Assert.False(state.HasSuggestedItem())
End Using
End Function
<WorkItem(1163608, "https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1163608")>
<ConditionalWpfFact(GetType(x86)), Trait(Traits.Feature, Traits.Features.DebuggingIntelliSense)>
Public Async Function TestItemDescription() As Task
Dim text = <Workspace>
<Project Language="C#" CommonReferences="true">
<Document>class Program
{
static void Main(string[] args)
[|{|]
}
}</Document>
</Project>
</Workspace>
Using state = TestState.CreateCSharpTestState(text, True)
state.SendTypeChars("arg")
Await state.WaitForAsynchronousOperationsAsync()
Await state.AssertCompletionSession()
Await state.AssertSelectedCompletionItem("args")
Dim description = Await state.GetSelectedItemDescriptionAsync()
Assert.Contains("args", description.Text)
state.SendTab()
Assert.Contains("args", state.GetCurrentViewLineText())
End Using
End Function
End Class
End Namespace
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册