GetEntries() public méthode

public GetEntries ( RCompletionContext context ) : IReadOnlyCollection
context RCompletionContext
Résultat IReadOnlyCollection
        public void LocalFiles() {
            var workflow = Substitute.For<IRInteractiveWorkflow>();

            var provider = new FilesCompletionProvider(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), workflow, _imagesProvider, _glyphService);
            var entries = provider.GetEntries(null);
            entries.Should().NotBeEmpty();
            entries.Should().Contain(e => e.DisplayText == _testFolderName);
        }
        public async Task RemoteFiles() {
            using (var workflow = UIThreadHelper.Instance.Invoke(() => _exportProvider.GetExportedValue<IRInteractiveWorkflowProvider>().GetOrCreate())) {
                await workflow.RSessions.TrySwitchBrokerAsync(nameof(FileCompletionProviderTest));
                await workflow.RSession.EnsureHostStartedAsync(new RHostStartupInfo {
                    Name = nameof(RemoteFiles)
                }, null, 50000);

                var provider = new FilesCompletionProvider(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), workflow, _imagesProvider, _glyphService, forceR: true);
                var entries = provider.GetEntries(null);
                entries.Should().NotBeEmpty();
                entries.Should().Contain(e => e.DisplayText == _testFolderName);
            }
        }