Exemplo n.º 1
0
        public void Keywords04()
        {
            var completionSets = new List <CompletionSet>();

            RCompletionTestUtilities.GetCompletions(_services, "#'  ", 2, completionSets);
            completionSets.Should().ContainSingle();
            completionSets.First().Completions.Should().HaveCount(RoxygenKeywords.Keywords.Length);
        }
Exemplo n.º 2
0
        public void Keywords03()
        {
            var completionSets = new List <CompletionSet>();

            RCompletionTestUtilities.GetCompletions(_services, "#'  ", 1, completionSets);
            completionSets.Should().ContainSingle();
            completionSets.First().Completions.Should().BeEmpty();
        }
Exemplo n.º 3
0
 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();
     }
 }
Exemplo n.º 4
0
        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();
        }
Exemplo n.º 5
0
 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();
     }
 }