コード例 #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);
        }
コード例 #2
0
        public void Keywords03()
        {
            var completionSets = new List <CompletionSet>();

            RCompletionTestUtilities.GetCompletions(_services, "#'  ", 1, completionSets);
            completionSets.Should().ContainSingle();
            completionSets.First().Completions.Should().BeEmpty();
        }
コード例 #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();
     }
 }
コード例 #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();
        }
コード例 #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();
     }
 }