Example #1
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);
 }
Example #2
0
 void CreateTestDebugger()
 {
     debuggerService    = new MockDebuggerService();
     debugger           = debuggerService.MockDebugger;
     messageService     = new MockMessageService();
     testResultsMonitor = new MockTestResultsMonitor();
     testResultsMonitor.InitialFilePosition = 3;
     options = new RubyAddInOptions(new Properties());
     options.RubyFileName = @"c:\ironruby\ir.exe";
     fileService          = new MockScriptingFileService();
     testDebugger         = new RubyTestDebugger(debuggerService, messageService, testResultsMonitor, options, fileService);
 }
        void CreateTestRunner()
        {
            processRunner      = new MockProcessRunner();
            testResultsMonitor = new MockTestResultsMonitor();
            testResultsMonitor.InitialFilePosition = 3;
            options = new RubyAddInOptions(new Properties());
            options.RubyFileName = @"c:\ironruby\ir.exe";
            fileService          = new MockScriptingFileService();
            MockMessageService messageService = new MockMessageService();

            RubyTestRunnerContext context = new RubyTestRunnerContext(processRunner, testResultsMonitor, options, fileService, messageService);

            testRunner = new RubyTestRunner(context);
        }
        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);
        }
Example #5
0
        public void Init()
        {
            string tempFileName = "temp.tmp";
            MockScriptingFileService fileService = new MockScriptingFileService();

            fileService.SetTempFileName(tempFileName);
            fileService.SetTextWriter(new StringWriter());

            Properties properties = new Properties();

            options = new RubyAddInOptions(properties);

            AddInPathHelper helper = new AddInPathHelper("RubyBinding");
            AddIn           addin  = helper.CreateDummyAddInInsideAddInTree();

            addin.FileName = @"c:\rubybinding\rubybinding.addin";

            string testResultsFileName = "results.txt";

            testRunner = new RubyTestRunnerApplication(testResultsFileName, options, fileService);
        }
		public void Init()
		{
			fileService = new MockScriptingFileService();
		}
 public void Init()
 {
     fileService = new MockScriptingFileService();
 }