Esempio n. 1
0
 public IdeGraphicsDeviceTest(GraphicsDeviceTestFilesFixture files, TestMethodFixture testMethod)
 {
     _files           = files;
     _testMethod      = testMethod.MethodInfo;
     _brokerConnector = new RHostBrokerConnector();
     _brokerConnector.SwitchToLocalBroker(nameof(IdeGraphicsDeviceTest));
 }
Esempio n. 2
0
 public ReadInput(TestMethodFixture testMethod, TaskObserverMethodFixture taskObserver)
 {
     _taskObserver = taskObserver;
     _testMethod   = testMethod.MethodInfo;
     _session      = new RSession(0, () => { });
     _callback     = new RSessionCallbackStub();
 }
Esempio n. 3
0
 public CancelAll(TestMethodFixture testMethod, TaskObserverMethodFixture taskObserver) {
     _taskObserver = taskObserver;
     _testMethod = testMethod.MethodInfo;
     _brokerClient = CreateLocalBrokerClient(nameof(RSessionTest) + nameof(CancelAll));
     _callback = new RSessionCallbackStub();
     _session = new RSession(0, _brokerClient, new AsyncReaderWriterLock().CreateExclusiveReaderLock(), () => {});
 }
Esempio n. 4
0
 public ReadInput(CoreServicesFixture coreServices, TestMethodFixture testMethod, TaskObserverMethodFixture taskObserver)
 {
     _taskObserver = taskObserver;
     _brokerClient = CreateLocalBrokerClient(coreServices, nameof(RSessionTest) + nameof(ReadInput));
     _session      = new RSession(0, testMethod.FileSystemSafeName, _brokerClient, new AsyncReaderWriterLock().CreateExclusiveReaderLock(), () => { });
     _callback     = new RSessionCallbackStub();
 }
Esempio n. 5
0
 public CancelAll(IServiceContainer services, TestMethodFixture testMethod, TaskObserverMethodFixture taskObserver)
 {
     _taskObserver = taskObserver;
     _callback     = new RSessionCallbackStub();
     _brokerClient = CreateLocalBrokerClient(services, nameof(RSessionTest) + nameof(CancelAll));
     _session      = new RSession(0, testMethod.FileSystemSafeName, _brokerClient, new AsyncReaderWriterLock().CreateExclusiveReaderLock(), () => {});
 }
Esempio n. 6
0
 public InteractionEvaluation(IServiceContainer services, TestMethodFixture testMethod, TaskObserverMethodFixture taskObserver)
 {
     _taskObserver = taskObserver;
     _testMethod   = testMethod;
     _brokerClient = CreateLocalBrokerClient(services, nameof(RSessionTest) + nameof(InteractionEvaluation));
     _session      = new RSession(0, _testMethod.FileSystemSafeName, _brokerClient, new AsyncReaderWriterLock().CreateExclusiveReaderLock(), () => { });
 }
Esempio n. 7
0
 public RSessionTest(IServiceContainer services, TestMethodFixture testMethod)
 {
     _services     = services;
     _testMethod   = testMethod;
     _brokerClient = CreateLocalBrokerClient(services, nameof(RSessionTest));
     _fileSystem   = _services.FileSystem();
 }
Esempio n. 8
0
 public ViewersTest(TestMethodFixture testMethod)
 {
     _testMethod      = testMethod;
     _aggregator      = VsAppShell.Current.ExportProvider.GetExportedValue <IObjectDetailsViewerAggregator>();
     _workflow        = VsAppShell.Current.ExportProvider.GetExportedValue <IRInteractiveWorkflowProvider>().GetOrCreate();
     _sessionProvider = _workflow.RSessions;
 }
 public RPackageManagerViewModelTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod, TestFilesFixture testFiles) {
     _exportProvider = catalog.CreateExportProvider();
     var workflowProvider = _exportProvider.GetExportedValue<TestRInteractiveWorkflowProvider>();
     _workflow = UIThreadHelper.Instance.Invoke(() => workflowProvider.GetOrCreate());
     _testMethod = testMethod.MethodInfo;
     _testFiles = testFiles;
 }
Esempio n. 10
0
 public RPackageManagerViewModelTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod, TestFilesFixture testFiles)
 {
     _exportProvider = catalog.CreateExportProvider();
     _workflow       = _exportProvider.GetExportedValue <TestRInteractiveWorkflowProvider>().GetOrCreate();
     _testMethod     = testMethod.MethodInfo;
     _testFiles      = testFiles;
 }
Esempio n. 11
0
 public GridDataTest(IServiceContainer services, TestMethodFixture testMethod)
 {
     _services        = services;
     _sessionProvider = new RSessionProvider(services);
     _session         = _sessionProvider.GetOrCreate(testMethod.FileSystemSafeName);
     _dataSource      = new GridDataSource(_session);
 }
Esempio n. 12
0
 public Blobs(TestMethodFixture testMethod, TaskObserverMethodFixture taskObserver)
 {
     _taskObserver = taskObserver;
     _testMethod   = testMethod.MethodInfo;
     _brokerClient = CreateLocalBrokerClient(nameof(RSessionTest) + nameof(Blobs));
     _session      = new RSession(0, _brokerClient, () => { });
 }
Esempio n. 13
0
 public RInteractiveWorkflowCommandTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod)
 {
     _testMethod                = testMethod.MethodInfo;
     _exportProvider            = catalog.CreateExportProvider();
     _workflow                  = _exportProvider.GetExportedValue <IRInteractiveWorkflowProvider>().GetOrCreate();
     _componentContainerFactory = _exportProvider.GetExportedValue <IInteractiveWindowComponentContainerFactory>();
 }
Esempio n. 14
0
 public ReadInput(TestMethodFixture testMethod)
 {
     _testMethodFixture = testMethod;
     _testMethod        = testMethod.MethodInfo;
     _session           = new RSession(0, () => { });
     _callback          = new RSessionCallbackStub();
 }
Esempio n. 15
0
 public Output(TestMethodFixture testMethod)
 {
     _testMethod      = testMethod.MethodInfo;
     _brokerConnector = new RHostBrokerConnector();
     _brokerConnector.SwitchToLocalBroker(nameof(RSessionTest) + nameof(Output));
     _session = new RSession(0, _brokerConnector, () => { });
 }
Esempio n. 16
0
        public ValuesTest(TestMethodFixture testMethod)
        {
            _testMethod      = testMethod.MethodInfo;
            _sessionProvider = new RSessionProvider(TestCoreServices.CreateReal());

            _session = _sessionProvider.GetOrCreate(Guid.NewGuid());
        }
Esempio n. 17
0
 public Blobs(IServiceContainer services, TestMethodFixture testMethod)
 {
     _testMethod   = testMethod;
     _brokerClient = CreateLocalBrokerClient(services, nameof(RSessionTest) + nameof(Blobs));
     _fileSystem   = services.FileSystem();
     _session      = new RSession(0, testMethod.FileSystemSafeName, _fileSystem, _brokerClient, new AsyncReaderWriterLock().CreateExclusiveReaderLock(), () => { });
 }
Esempio n. 18
0
 public GridDataTest(TestMethodFixture testMethod, BrokerFixture broker)
 {
     _testMethod      = testMethod.MethodInfo;
     _broker          = broker;
     _sessionProvider = new RSessionProvider();
     _session         = _sessionProvider.GetOrCreate(Guid.NewGuid(), _broker.BrokerConnector);
 }
Esempio n. 19
0
 public ReadInput(TestMethodFixture testMethod, TaskObserverMethodFixture taskObserver)
 {
     _taskObserver = taskObserver;
     _testMethod   = testMethod.MethodInfo;
     _brokerClient = CreateLocalBrokerClient(nameof(RSessionTest) + nameof(ReadInput));
     _session      = new RSession(0, _brokerClient, () => { });
     _callback     = new RSessionCallbackStub();
 }
Esempio n. 20
0
 public Blobs(TestMethodFixture testMethod, TaskObserverMethodFixture taskObserver)
 {
     _taskObserver    = taskObserver;
     _testMethod      = testMethod.MethodInfo;
     _brokerConnector = new RHostBrokerConnector();
     _brokerConnector.SwitchToLocalBroker(nameof(RSessionTest) + nameof(Blobs));
     _session = new RSession(0, _brokerConnector, () => { });
 }
Esempio n. 21
0
 public Blobs(CoreServicesFixture coreServices, TestMethodFixture testMethod, TaskObserverMethodFixture taskObserver)
 {
     _coreServices = coreServices;
     _taskObserver = taskObserver;
     _testMethod   = testMethod;
     _brokerClient = CreateLocalBrokerClient(_coreServices, nameof(RSessionTest) + nameof(Blobs));
     _session      = new RSession(0, testMethod.FileSystemSafeName, _brokerClient, new AsyncReaderWriterLock().CreateExclusiveReaderLock(), () => { });
 }
Esempio n. 22
0
 public BlobsTest(TestMethodFixture testMethod)
 {
     _testMethod      = testMethod.MethodInfo;
     _brokerConnector = new RHostBrokerConnector();
     _brokerConnector.SwitchToLocalBroker(nameof(BlobsTest));
     _sessionProvider = new RSessionProvider();
     _session         = _sessionProvider.GetOrCreate(Guid.NewGuid(), _brokerConnector);
 }
Esempio n. 23
0
 public ReadInput(TestMethodFixture testMethod, TaskObserverMethodFixture taskObserver)
 {
     _taskObserver    = taskObserver;
     _testMethod      = testMethod.MethodInfo;
     _brokerConnector = new RHostBrokerConnector();
     _brokerConnector.SwitchToLocalBroker(nameof(RSessionTest) + nameof(ReadInput));
     _session  = new RSession(0, _brokerConnector, () => { });
     _callback = new RSessionCallbackStub();
 }
Esempio n. 24
0
        public RPackageManagerViewModelTest(IServiceContainer services, TestMethodFixture testMethod, TestFilesFixture testFiles)
        {
            _services = services;
            var workflowProvider = _services.GetService <IRInteractiveWorkflowProvider>();

            _workflow   = UIThreadHelper.Instance.Invoke(() => workflowProvider.GetOrCreate());
            _testMethod = testMethod.MethodInfo;
            _testFiles  = testFiles;
        }
Esempio n. 25
0
 public RPlotIntegrationTest(IExportProvider exportProvider, TestMethodFixture testMethod, TestFilesFixture testFiles)
 {
     _workflowProvider = exportProvider.GetExportedValue <TestRInteractiveWorkflowProvider>();
     _workflow         = _workflowProvider.GetOrCreate();
     _plotDeviceVisualComponentContainerFactory  = exportProvider.GetExportedValue <TestRPlotDeviceVisualComponentContainerFactory>();
     _plotHistoryVisualComponentContainerFactory = exportProvider.GetExportedValue <IRPlotHistoryVisualComponentContainerFactory>();
     _testMethod = testMethod.MethodInfo;
     _testFiles  = testFiles;
 }
Esempio n. 26
0
 public PlotIntegrationTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod, TestFilesFixture testFiles)
 {
     _exportProvider            = catalog.CreateExportProvider();
     _workflowProvider          = _exportProvider.GetExportedValue <TestRInteractiveWorkflowProvider>();
     _workflow                  = _exportProvider.GetExportedValue <IRInteractiveWorkflowProvider>().GetOrCreate();
     _componentContainerFactory = _exportProvider.GetExportedValue <IInteractiveWindowComponentContainerFactory>();
     _testMethod                = testMethod.MethodInfo;
     _testFiles                 = testFiles;
 }
Esempio n. 27
0
 public RPlotIntegrationTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod, TestFilesFixture testFiles) {
     _exportProvider = catalog.CreateExportProvider();
     _workflowProvider = _exportProvider.GetExportedValue<TestRInteractiveWorkflowProvider>();
     _workflow = _workflowProvider.GetOrCreate();
     _plotDeviceVisualComponentContainerFactory = _exportProvider.GetExportedValue<TestRPlotDeviceVisualComponentContainerFactory>();
     _plotHistoryVisualComponentContainerFactory = _exportProvider.GetExportedValue<IRPlotHistoryVisualComponentContainerFactory>();
     _testMethod = testMethod.MethodInfo;
     _testFiles = testFiles;
 }
Esempio n. 28
0
        public RPackageManagerViewModelTest(IExportProvider exportProvider, TestMethodFixture testMethod, TestFilesFixture testFiles)
        {
            _exportProvider = exportProvider;
            var workflowProvider = _exportProvider.GetExportedValue <TestRInteractiveWorkflowProvider>();

            _workflow   = UIThreadHelper.Instance.Invoke(() => workflowProvider.GetOrCreate());
            _testMethod = testMethod.MethodInfo;
            _testFiles  = testFiles;
        }
Esempio n. 29
0
        public RPackageManagerViewModelTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod, TestFilesFixture testFiles)
        {
            _exportProvider = catalog.CreateExportProvider();
            var workflowProvider = _exportProvider.GetExportedValue <TestRInteractiveWorkflowProvider>();

            workflowProvider.BrokerName = nameof(RPackageManagerViewModelTest);
            _workflow   = UIThreadHelper.Instance.Invoke(() => workflowProvider.GetOrCreate());
            _testMethod = testMethod.MethodInfo;
            _testFiles  = testFiles;
        }
 public PackageManagerIntegrationTest(IServiceContainer services, TestMethodFixture testMethod, TestFilesFixture testFiles)
 {
     _services         = services;
     _workflowProvider = _services.GetService <TestRInteractiveWorkflowProvider>();
     _repoPath         = TestRepositories.GetRepoPath(testFiles);
     _libPath          = Path.Combine(testFiles.LibraryDestinationPath, testMethod.MethodInfo.Name);
     _lib2Path         = Path.Combine(testFiles.Library2DestinationPath, testMethod.MethodInfo.Name);
     Directory.CreateDirectory(_libPath);
     Directory.CreateDirectory(_lib2Path);
 }
 public PackageManagerIntegrationTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod, TestFilesFixture testFiles) {
     _exportProvider = catalog.CreateExportProvider();
     _workflowProvider = _exportProvider.GetExportedValue<TestRInteractiveWorkflowProvider>();
     _testMethod = testMethod.MethodInfo;
     _repoPath = TestRepositories.GetRepoPath(testFiles);
     _libPath = Path.Combine(testFiles.LibraryDestinationPath, _testMethod.Name);
     _lib2Path = Path.Combine(testFiles.Library2DestinationPath, _testMethod.Name);
     Directory.CreateDirectory(_libPath);
     Directory.CreateDirectory(_lib2Path);
 }
Esempio n. 32
0
 public RPlotIntegrationTest(IServiceContainer services, TestMethodFixture testMethod, TestFilesFixture testFiles)
 {
     _workflowProvider = services.GetService <TestRInteractiveWorkflowProvider>();
     _workflow         = _workflowProvider.GetOrCreate();
     _plotDeviceVisualComponentContainerFactory  = services.GetService <TestRPlotDeviceVisualComponentContainerFactory>();
     _plotHistoryVisualComponentContainerFactory = services.GetService <IRPlotHistoryVisualComponentContainerFactory>();
     _testMethod = testMethod.MethodInfo;
     _testFiles  = testFiles;
     _ui         = _workflow.Shell.UI() as TestUIServices;
 }
 public PackageManagerIntegrationTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod, TestFilesFixture testFiles)
 {
     _exportProvider   = catalog.CreateExportProvider();
     _workflowProvider = _exportProvider.GetExportedValue <TestRInteractiveWorkflowProvider>();
     _testMethod       = testMethod.MethodInfo;
     _repoPath         = TestRepositories.GetRepoPath(testFiles);
     _libPath          = Path.Combine(testFiles.LibraryDestinationPath, _testMethod.Name);
     _lib2Path         = Path.Combine(testFiles.Library2DestinationPath, _testMethod.Name);
     Directory.CreateDirectory(_libPath);
     Directory.CreateDirectory(_lib2Path);
 }
 public PackageManagerIntegrationTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod, TestFilesFixture testFiles)
 {
     _exportProvider   = catalog.CreateExportProvider();
     _workflowProvider = _exportProvider.GetExportedValue <TestRInteractiveWorkflowProvider>();
     _testMethod       = testMethod.MethodInfo;
     _testFiles        = testFiles;
     _workflowProvider.HostClientApp = new RHostClientTestApp();
     _repo1Path = _testFiles.GetDestinationPath(Path.Combine("Repos", TestRepositories.Repo1));
     _libPath   = Path.Combine(_testFiles.GetDestinationPath("library"), _testMethod.Name);
     _lib2Path  = Path.Combine(_testFiles.GetDestinationPath("library2"), _testMethod.Name);
     Directory.CreateDirectory(_libPath);
     Directory.CreateDirectory(_lib2Path);
 }
Esempio n. 35
0
 public Output(TestMethodFixture testMethod) {
     _testMethod = testMethod.MethodInfo;
     _brokerClient = CreateLocalBrokerClient(nameof(RSessionTest) + nameof(Output));
     _session = new RSession(0, _brokerClient, new AsyncReaderWriterLock().CreateExclusiveReaderLock(), () => { });
 }
Esempio n. 36
0
 public BlobsTest(TestMethodFixture testMethod) {
     _testMethod = testMethod.MethodInfo;
     _sessionProvider = new RSessionProvider(TestCoreServices.CreateReal());
     _session = _sessionProvider.GetOrCreate(Guid.NewGuid());
 }
 public InteractionEvaluation(TestMethodFixture testMethod, TaskObserverMethodFixture taskObserver) {
     _taskObserver = taskObserver;
     _testMethod = testMethod.MethodInfo;
     _brokerClient = CreateLocalBrokerClient(nameof(RSessionTest) + nameof(InteractionEvaluation));
     _session = new RSession(0, _brokerClient, new AsyncReaderWriterLock().CreateExclusiveReaderLock(), () => { });
 }
Esempio n. 38
0
 public XamlGraphicsDeviceTest(TestMethodFixture testMethod) {
     _testMethod = testMethod.MethodInfo;
 }
Esempio n. 39
0
 public IdeGraphicsDeviceTest(GraphicsDeviceTestFilesFixture files, TestMethodFixture testMethod) {
     _files = files;
     _testMethod = testMethod.MethodInfo;
 }
 public RInteractiveWorkflowCommandTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod) {
     _testMethod = testMethod.MethodInfo;
     _exportProvider = catalog.CreateExportProvider();
     _workflow = _exportProvider.GetExportedValue<IRInteractiveWorkflowProvider>().GetOrCreate();
     _settings = _exportProvider.GetExportedValue<IRSettings>();
 }
Esempio n. 41
0
 public RSessionTest(TestMethodFixture testMethod) {
     _testMethod = testMethod.MethodInfo;
     _brokerClient = CreateLocalBrokerClient(nameof(RSessionTest));
 }