public PythonTestRunner(PythonTestRunnerContext context) : base(context) { this.options = context.Options; this.pythonStandardLibraryPath = context.PythonStandardLibraryPath; this.fileService = context.ScriptingFileService; }
public void SetUp() { properties = new Properties(); options = new PythonAddInOptions(properties); options.PythonFileName = @"C:\Python\ipy.exe"; options.PythonLibraryPath = @"C:\Python26\lib"; optionsPanel = new PythonOptionsPanel(options); optionsPanel.LoadPanelContents(); fileNameTextBox = (TextBox)optionsPanel.ControlDictionary["pythonFileNameTextBox"]; pythonLibraryPathTextBox = (TextBox)optionsPanel.ControlDictionary["pythonLibraryPathTextBox"]; }
public PythonTestRunnerApplication(string testResultsFileName, PythonAddInOptions options, PythonStandardLibraryPath pythonStandardLibraryPath, IScriptingFileService fileService) { this.testResultsFileName = testResultsFileName; this.options = options; this.pythonStandardLibraryPath = pythonStandardLibraryPath; this.fileService = fileService; consoleApplication = new PythonConsoleApplication(options); }
void CreateTestDebugger() { debuggerService = new MockDebuggerService(); debugger = debuggerService.MockDebugger; messageService = new MockMessageService(); testResultsMonitor = new MockTestResultsMonitor(); options = new PythonAddInOptions(new Properties()); options.PythonFileName = @"c:\ironpython\ipy.exe"; standardLibraryPath = new PythonStandardLibraryPath(@"c:\python\lib"); fileService = new MockScriptingFileService(); testDebugger = new PythonTestDebugger(debuggerService, messageService, testResultsMonitor, options, standardLibraryPath, fileService); }
public PythonTestDebugger(IUnitTestDebuggerService debuggerService, IUnitTestMessageService messageService, ITestResultsMonitor testResultsMonitor, PythonAddInOptions options, PythonStandardLibraryPath pythonStandardLibraryPath, IScriptingFileService fileService) : base(debuggerService, messageService, testResultsMonitor) { this.options = options; this.pythonStandardLibraryPath = pythonStandardLibraryPath; this.fileService = fileService; }
public PythonTestRunnerContext(IUnitTestProcessRunner processRunner, ITestResultsMonitor testResultsMonitor, IUnitTestMessageService messageService, PythonAddInOptions options, PythonStandardLibraryPath pythonStandardLibraryPath, IScriptingFileService fileService) : base(processRunner, testResultsMonitor, fileService, messageService) { this.options = options; this.pythonStandardLibraryPath = pythonStandardLibraryPath; this.fileService = fileService; }
public void Init() { MockWorkbench workbench = MockWorkbench.CreateWorkbenchWithOneViewContent(@"C:\Projects\test.py"); Properties p = new Properties(); PythonAddInOptions options = new PythonAddInOptions(p); options.PythonFileName = @"C:\IronPython\ipy.exe"; debugger = new MockDebugger(); command = new RunPythonCommand(workbench, options, debugger); command.Run(); }
void CreateTestRunner() { processRunner = new MockProcessRunner(); testResultsMonitor = new MockTestResultsMonitor(); options = new PythonAddInOptions(new Properties()); options.PythonFileName = @"c:\ironpython\ipy.exe"; fileService = new MockScriptingFileService(); messageService = new MockMessageService(); standardLibraryPath = new PythonStandardLibraryPath(@"c:\python\lib"); PythonTestRunnerContext context = new PythonTestRunnerContext(processRunner, testResultsMonitor, messageService, options, standardLibraryPath, fileService); testRunner = new PythonTestRunner(context); }
public RunDebugPythonCommand(IScriptingWorkbench workbench, PythonAddInOptions options, IDebugger debugger) : base(workbench, options, debugger) { Debug = true; }
public PythonOptionsPanel(PythonAddInOptions options) { this.options = options; }
public void Init() { options = new PythonAddInOptions(new Properties()); options.PythonFileName = @"C:\IronPython\ipy.exe"; app = new PythonConsoleApplication(options); }
public RunPythonCommand(IScriptingWorkbench workbench, PythonAddInOptions options, IDebugger debugger) : base(workbench, debugger, new PythonConsoleApplication(options)) { }
public PythonConsoleApplication(PythonAddInOptions options) { this.options = options; }
public void Init() { properties = new Properties(); options = new PythonAddInOptions(properties); }