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"];
 }
Exemple #2
0
 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 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);
        }
Exemple #5
0
 public void Init()
 {
     options = new PythonAddInOptions(new Properties());
     options.PythonFileName = @"C:\IronPython\ipy.exe";
     app = new PythonConsoleApplication(options);
 }
 public void Init()
 {
     properties = new Properties();
     options    = new PythonAddInOptions(properties);
 }