예제 #1
0
 public void SetUp()
 {
     properties             = new Properties();
     options                = new AddInOptions(properties);
     options.PythonFileName = @"C:\Python\ipy.exe";
     optionsPanel           = new PythonOptionsPanel(options);
     optionsPanel.LoadPanelContents();
     fileNameTextBox = (TextBox)optionsPanel.ControlDictionary["pythonFileNameTextBox"];
 }
예제 #2
0
 public void SetUp()
 {
     properties           = new Properties();
     options              = new AddInOptions(properties);
     options.RubyFileName = @"C:\Ruby\ir.exe";
     optionsPanel         = new RubyOptionsPanel(options);
     optionsPanel.LoadPanelContents();
     fileNameTextBox = (TextBox)optionsPanel.ControlDictionary["rubyFileNameTextBox"];
 }
예제 #3
0
        public void SetRubyConsoleFileName()
        {
            Properties   p        = new Properties();
            AddInOptions options  = new AddInOptions(p);
            string       fileName = @"C:\IronRuby\ir.exe";

            options.RubyFileName = fileName;

            Assert.AreEqual(fileName, options.RubyFileName);
            Assert.AreEqual(fileName, p["RubyFileName"]);
        }
예제 #4
0
        public void SetPythonConsoleFileName()
        {
            Properties   p        = new Properties();
            AddInOptions options  = new AddInOptions(p);
            string       fileName = @"C:\IronPython\ipy.exe";

            options.PythonFileName = fileName;

            Assert.AreEqual(fileName, options.PythonFileName);
            Assert.AreEqual(fileName, p["PythonFileName"]);
        }
        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 RunPythonCommand(workbench, options, debugger);
            command.Run();
        }