public void SetUpFixture() { 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 RunDebugPythonCommand(workbench, options, debugger); command.Run(); }
public void SetUpFixture() { // Create dummy view content with the Python script. MockViewContent viewContent = new MockViewContent(); viewContent.PrimaryFileName = @"C:\Projects\test.py"; MockWorkbenchWindow workbenchWindow = new MockWorkbenchWindow(); workbenchWindow.ActiveViewContent = viewContent; MockWorkbench workbench = new MockWorkbench(); workbench.ActiveWorkbenchWindow = workbenchWindow; // Create the Python binding addin options. Properties p = new Properties(); AddInOptions options = new AddInOptions(p); options.PythonFileName = @"C:\IronPython\ipy.exe"; debugger = new MockDebugger(); command = new RunDebugPythonCommand(workbench, options, debugger); command.Run(); }