private static void AssertRazorCompletionItem(string completionDisplayText, DirectiveDescriptor directive, RazorCompletionItem item) { Assert.Equal(item.DisplayText, completionDisplayText); Assert.Equal(item.InsertText, directive.Directive); var completionDescription = item.GetDirectiveCompletionDescription(); Assert.Equal(directive.Description, completionDescription.Description); }
private static void AssertRazorCompletionItem(string completionDisplayText, DirectiveDescriptor directive, RazorCompletionItem item, IReadOnlyCollection <string> commitCharacters = null) { Assert.Equal(item.DisplayText, completionDisplayText); Assert.Equal(item.InsertText, directive.Directive); var completionDescription = item.GetDirectiveCompletionDescription(); Assert.Equal(directive.Description, completionDescription.Description); Assert.Equal(item.CommitCharacters, commitCharacters ?? DirectiveCompletionItemProvider.SingleLineDirectiveCommitCharacters); }