Inheritance: IDebuggerModeTracker
コード例 #1
0
 public CurrentDirectoryTest() {
     var sessionProvider = VsAppShell.Current.ExportProvider.GetExportedValue<IRSessionProvider>();
     var historyProvider = VsAppShell.Current.ExportProvider.GetExportedValue<IRHistoryProvider>();
     var activeTextViewTracker = new ActiveTextViewTrackerMock(string.Empty, string.Empty);
     var debuggerModeTracker = new TestDebuggerModeTracker();
     _interactiveWorkflow = new RInteractiveWorkflow(sessionProvider, historyProvider, activeTextViewTracker, debuggerModeTracker, null, VsAppShell.Current, RToolsSettings.Current, () => {});
 }
コード例 #2
0
        public CurrentDirectoryTest() {
            var connectionsProvider = VsAppShell.Current.ExportProvider.GetExportedValue<IConnectionManagerProvider>();
            var historyProvider = VsAppShell.Current.ExportProvider.GetExportedValue<IRHistoryProvider>();
            var packagesProvider = VsAppShell.Current.ExportProvider.GetExportedValue<IRPackageManagerProvider>();
            var plotsProvider = VsAppShell.Current.ExportProvider.GetExportedValue<IRPlotManagerProvider>();
            var activeTextViewTracker = new ActiveTextViewTrackerMock(string.Empty, string.Empty);
            var debuggerModeTracker = new TestDebuggerModeTracker();
            _interactiveWorkflow = UIThreadHelper.Instance.Invoke(() => new RInteractiveWorkflow(
                connectionsProvider, historyProvider, packagesProvider, plotsProvider, activeTextViewTracker,
                debuggerModeTracker, VsAppShell.Current, RToolsSettings.Current));

            _sessionProvider = _interactiveWorkflow.RSessions;
        }