示例#1
0
 public void CreateFakeWorkbench()
 {
     workbench             = MockWorkbench.CreateWorkbenchWithOneViewContent("test.py");
     fakeConsoleTextEditor = workbench.FakeScriptingConsolePad.FakeConsoleTextEditor;
     fakeConsole           = workbench.FakeScriptingConsolePad.FakeScriptingConsole;
     fakeTextEditor        = workbench.ActiveMockEditableViewContent.MockTextEditor;
 }
        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();
        }
示例#3
0
        public void Init()
        {
            MockWorkbench workbench = MockWorkbench.CreateWorkbenchWithOneViewContent(@"C:\Projects\test.rb");

            Properties       p       = new Properties();
            RubyAddInOptions options = new RubyAddInOptions(p);

            options.RubyFileName = @"C:\IronRuby\ir.exe";

            debugger = new MockDebugger();
            command  = new RunRubyCommand(workbench, options, debugger);
            command.Run();
        }
示例#4
0
        public void SetUpFixture()
        {
            MockWorkbench workbench = MockWorkbench.CreateWorkbenchWithOneViewContent("test.cs");

            workbench.ActiveMockEditableViewContent.Text = "class Foo { }";

            MockTextEditorOptions options = workbench.ActiveMockEditableViewContent.MockTextEditorOptions;

            options.IndentationSize     = 4;
            options.ConvertTabsToSpaces = true;

            Run(workbench);
        }
        public void Init()
        {
            MockWorkbench workbench = MockWorkbench.CreateWorkbenchWithOneViewContent("test.vb");

            workbench.ActiveMockEditableViewContent.Text =
                "class Foo\r\n" +
                "end class";

            MockTextEditorOptions options = workbench.ActiveMockEditableViewContent.MockTextEditorOptions;

            options.ConvertTabsToSpaces = false;
            options.IndentationSize     = 2;

            Run(workbench);
        }