Exemplo n.º 1
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();
        }
Exemplo n.º 2
0
        public void SetUpFixture()
        {
            // Create dummy view content with the Ruby script.
            MockViewContent viewContent = new MockViewContent();

            viewContent.PrimaryFileName = @"C:\Projects\test.rb";
            MockWorkbenchWindow workbenchWindow = new MockWorkbenchWindow();

            workbenchWindow.ActiveViewContent = viewContent;
            MockWorkbench workbench = new MockWorkbench();

            workbench.ActiveWorkbenchWindow = workbenchWindow;

            // Create the Ruby binding addin options.
            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();
        }