SetLocalLibraryAsync() 공개 정적인 메소드

public static SetLocalLibraryAsync ( IRExpressionEvaluator eval, MethodInfo testMethod, TestFilesFixture testFiles ) : System.Threading.Tasks.Task
eval IRExpressionEvaluator
testMethod System.Reflection.MethodInfo
testFiles TestFilesFixture
리턴 System.Threading.Tasks.Task
예제 #1
0
        public async Task InitializeAsync()
        {
            var settings = _services.GetService <IRSettings>();
            await _workflow.RSessions.TrySwitchBrokerAsync(nameof(RPackageManagerViewModelTest));

            await _workflow.RSession.EnsureHostStartedAsync(new RHostStartupInfo(settings.CranMirror, codePage : settings.RCodePage), null, 50000);

            await TestRepositories.SetLocalRepoAsync(_workflow.RSession, _testFiles);

            await TestLibraries.SetLocalLibraryAsync(_workflow.RSession, _testMethod, _testFiles);

            _packageManagerToolWindow = (TestToolWindow) await InUI(() => ((IRInteractiveWorkflowVisual)_workflow).ToolWindows.Packages());

            _packageManagerViewModel = (IRPackageManagerViewModel)_packageManagerToolWindow.ViewModel;
        }
        public async Task InitializeAsync()
        {
            var settings = _services.GetService <IRSettings>();
            await _workflow.RSessions.TrySwitchBrokerAsync(nameof(RPackageManagerViewModelTest));

            await _workflow.RSession.EnsureHostStartedAsync(new RHostStartupInfo(settings.CranMirror, codePage : settings.RCodePage), null, 50000);

            await TestRepositories.SetLocalRepoAsync(_workflow.RSession, _testFiles);

            await TestLibraries.SetLocalLibraryAsync(_workflow.RSession, _testMethod, _testFiles);

            var componentContainerFactory = _services.GetService <IRPackageManagerVisualComponentContainerFactory>();

            _packageManagerComponent = await InUI(() => _workflow.Packages.GetOrCreateVisualComponent(componentContainerFactory));

            _packageManagerViewModel = await InUI(() => _packageManagerComponent.Control.DataContext) as IRPackageManagerViewModel;
        }
예제 #3
0
        public async Task InitializeAsync()
        {
            var settings = _exportProvider.GetExportedValue <IRSettings>();
            await _workflow.RSessions.TrySwitchBrokerAsync(settings.LastActiveConnection.Name, settings.LastActiveConnection.Path);

            await _workflow.RSession.StartHostAsync(new RHostStartupInfo {
                Name                      = _testMethod.Name,
                CranMirrorName            = settings.CranMirror,
                RHostCommandLineArguments = settings.LastActiveConnection.RCommandLineArguments,
                CodePage                  = settings.RCodePage,
            }, null, 50000);

            await TestRepositories.SetLocalRepoAsync(_workflow.RSession, _testFiles);

            await TestLibraries.SetLocalLibraryAsync(_workflow.RSession, _testMethod, _testFiles);

            var componentContainerFactory = _exportProvider.GetExportedValue <IRPackageManagerVisualComponentContainerFactory>();

            _packageManagerComponent = await InUI(() => _workflow.Packages.GetOrCreateVisualComponent(componentContainerFactory));

            _packageManagerViewModel = await InUI(() => _packageManagerComponent.Control.DataContext) as IRPackageManagerViewModel;
        }
예제 #4
0
        public async Task InitializeAsync()
        {
            var settings = _exportProvider.GetExportedValue <IRSettings>();
            await _workflow.RSession.StartHostAsync(new RHostStartupInfo {
                Name      = _testMethod.Name,
                RBasePath = settings.RBasePath,
                RHostCommandLineArguments = settings.RCommandLineArguments,
                CranMirrorName            = settings.CranMirror,
                CodePage = settings.RCodePage,
            }, null, 50000);

            using (var eval = await _workflow.RSession.BeginEvaluationAsync()) {
                await TestRepositories.SetLocalRepoAsync(eval, _testFiles);

                await TestLibraries.SetLocalLibraryAsync(eval, _testMethod, _testFiles);
            }

            var componentContainerFactory = _exportProvider.GetExportedValue <IRPackageManagerVisualComponentContainerFactory>();

            _packageManagerComponent = await InUI(() => _workflow.Packages.GetOrCreateVisualComponent(componentContainerFactory));

            _packageManagerViewModel = await InUI(() => _packageManagerComponent.Control.DataContext) as IRPackageManagerViewModel;
        }