public void Keywords04() { var completionSets = new List <CompletionSet>(); RCompletionTestUtilities.GetCompletions(_services, "#' ", 2, completionSets); completionSets.Should().ContainSingle(); completionSets.First().Completions.Should().HaveCount(RoxygenKeywords.Keywords.Length); }
public void Keywords03() { var completionSets = new List <CompletionSet>(); RCompletionTestUtilities.GetCompletions(_services, "#' ", 1, completionSets); completionSets.Should().ContainSingle(); completionSets.First().Completions.Should().BeEmpty(); }
public void Keywords02(string content, int start) { for (var i = start; i < content.Length; i++) { var completionSets = new List <CompletionSet>(); RCompletionTestUtilities.GetCompletions(_services, content, i, completionSets); completionSets.Should().ContainSingle(); completionSets.First().Completions.Should().BeEmpty(); } }
public void Keywords01() { var completionSets = new List <CompletionSet>(); RCompletionTestUtilities.GetCompletions(_services, " ", 1, completionSets); completionSets.Should().ContainSingle(); var filtered = completionSets.First().Completions.Where(c => c.DisplayText.StartsWithOrdinal("@")); filtered.Should().BeEmpty(); }
public void Filtering(string content, int start) { for (var i = start; i < content.Length; i++) { var completionSets = new List <CompletionSet>(); RCompletionTestUtilities.GetCompletions(_services, content, i, completionSets); completionSets.Should().ContainSingle(); completionSets[0].Filter(); completionSets[0].Completions.Should().ContainSingle(); } }