Exemple #1
0
 public IntellisenseTest(REditorApplicationMefCatalogFixture catalog, EditorHostMethodFixture editorHost) : base(catalog)
 {
     _editorHost      = editorHost;
     _brokerConnector = new RHostBrokerConnector();
     _brokerConnector.SwitchToLocalBroker(nameof(IntellisenseTest));
     _sessionProvider = _exportProvider.GetExportedValue <IRSessionProvider>();
 }
Exemple #2
0
 public Output(TestMethodFixture testMethod)
 {
     _testMethod      = testMethod.MethodInfo;
     _brokerConnector = new RHostBrokerConnector();
     _brokerConnector.SwitchToLocalBroker(nameof(RSessionTest) + nameof(Output));
     _session = new RSession(0, _brokerConnector, () => { });
 }
 public IdeGraphicsDeviceTest(GraphicsDeviceTestFilesFixture files, TestMethodFixture testMethod)
 {
     _files           = files;
     _testMethod      = testMethod.MethodInfo;
     _brokerConnector = new RHostBrokerConnector();
     _brokerConnector.SwitchToLocalBroker(nameof(IdeGraphicsDeviceTest));
 }
Exemple #4
0
 public BlobsTest(TestMethodFixture testMethod)
 {
     _testMethod      = testMethod.MethodInfo;
     _brokerConnector = new RHostBrokerConnector();
     _brokerConnector.SwitchToLocalBroker(nameof(BlobsTest));
     _sessionProvider = new RSessionProvider();
     _session         = _sessionProvider.GetOrCreate(Guid.NewGuid(), _brokerConnector);
 }
Exemple #5
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, () => { });
 }
Exemple #6
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();
 }
Exemple #7
0
 private void SwitchBroker(IConnection connection)
 {
     ActiveConnection = connection;
     SaveActiveConnectionToSettings();
     if (connection.IsRemote)
     {
         _brokerConnector.SwitchToRemoteBroker(connection.Id);
     }
     else
     {
         _brokerConnector.SwitchToLocalBroker(connection.Name, connection.Path);
     }
 }
Exemple #8
0
 public BrokerFixture()
 {
     BrokerConnector = new RHostBrokerConnector();
     BrokerConnector.SwitchToLocalBroker(this.GetType().Name);
 }
Exemple #9
0
 public RSessionTest(TestMethodFixture testMethod)
 {
     _testMethod      = testMethod.MethodInfo;
     _brokerConnector = new RHostBrokerConnector();
     _brokerConnector.SwitchToLocalBroker(nameof(RSessionTest));
 }
 public XamlGraphicsDeviceTest(TestMethodFixture testMethod)
 {
     _testMethod      = testMethod.MethodInfo;
     _brokerConnector = new RHostBrokerConnector();
     _brokerConnector.SwitchToLocalBroker(nameof(XamlGraphicsDeviceTest));
 }
Exemple #11
0
 public RSessionProviderTest()
 {
     _brokerConnector = new RHostBrokerConnector();
     _brokerConnector.SwitchToLocalBroker(nameof(RSessionProviderTest));
 }