コード例 #1
0
 public IntellisenseTest(REditorApplicationMefCatalogFixture catalog, EditorHostMethodFixture editorHost) : base(catalog)
 {
     _editorHost      = editorHost;
     _brokerConnector = new RHostBrokerConnector();
     _brokerConnector.SwitchToLocalBroker(nameof(IntellisenseTest));
     _sessionProvider = _exportProvider.GetExportedValue <IRSessionProvider>();
 }
コード例 #2
0
 public Output(TestMethodFixture testMethod)
 {
     _testMethod      = testMethod.MethodInfo;
     _brokerConnector = new RHostBrokerConnector();
     _brokerConnector.SwitchToLocalBroker(nameof(RSessionTest) + nameof(Output));
     _session = new RSession(0, _brokerConnector, () => { });
 }
コード例 #3
0
 public IdeGraphicsDeviceTest(GraphicsDeviceTestFilesFixture files, TestMethodFixture testMethod)
 {
     _files           = files;
     _testMethod      = testMethod.MethodInfo;
     _brokerConnector = new RHostBrokerConnector();
     _brokerConnector.SwitchToLocalBroker(nameof(IdeGraphicsDeviceTest));
 }
コード例 #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);
 }
コード例 #5
0
ファイル: RSessionTest.Blobs.cs プロジェクト: ktaranov/RTVS
 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, () => { });
 }
コード例 #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();
 }
コード例 #7
0
ファイル: ConnectionManager.cs プロジェクト: ktaranov/RTVS
 private void SwitchBroker(IConnection connection)
 {
     ActiveConnection = connection;
     SaveActiveConnectionToSettings();
     if (connection.IsRemote)
     {
         _brokerConnector.SwitchToRemoteBroker(connection.Id);
     }
     else
     {
         _brokerConnector.SwitchToLocalBroker(connection.Name, connection.Path);
     }
 }
コード例 #8
0
 public BrokerFixture()
 {
     BrokerConnector = new RHostBrokerConnector();
     BrokerConnector.SwitchToLocalBroker(this.GetType().Name);
 }
コード例 #9
0
ファイル: RSessionTest.cs プロジェクト: ktaranov/RTVS
 public RSessionTest(TestMethodFixture testMethod)
 {
     _testMethod      = testMethod.MethodInfo;
     _brokerConnector = new RHostBrokerConnector();
     _brokerConnector.SwitchToLocalBroker(nameof(RSessionTest));
 }
コード例 #10
0
 public XamlGraphicsDeviceTest(TestMethodFixture testMethod)
 {
     _testMethod      = testMethod.MethodInfo;
     _brokerConnector = new RHostBrokerConnector();
     _brokerConnector.SwitchToLocalBroker(nameof(XamlGraphicsDeviceTest));
 }
コード例 #11
0
ファイル: RSessionProviderTest.cs プロジェクト: ktaranov/RTVS
 public RSessionProviderTest()
 {
     _brokerConnector = new RHostBrokerConnector();
     _brokerConnector.SwitchToLocalBroker(nameof(RSessionProviderTest));
 }