Example #1
0
 public void Init()
 {
     processRunner      = new MockProcessRunner();
     testResultsMonitor = new MockTestResultsMonitor();
     options            = new UnitTestingOptions(new Properties());
     fileSystem         = new MockFileSystem();
     messageService     = new MockMessageService();
     testRunner         = new DerivedCodeCoverageTestRunner(processRunner, testResultsMonitor, options, fileSystem, messageService);
 }
Example #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);
 }
Example #3
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);
 }
        public void Init()
        {
            selectedTests = SelectedTestsHelper.CreateSelectedTestMember();
            FileUtility.ApplicationRootPath = @"C:\SharpDevelop";

            messageService              = new MockMessageService();
            debuggerService             = new MockDebuggerService();
            debugger                    = debuggerService.MockDebugger;
            testResultsMonitor          = new MockTestResultsMonitor();
            testResultsMonitor.FileName = @"c:\temp\tmp66.tmp";
            options          = new UnitTestingOptions(new Properties());
            options.NoShadow = true;
            testDebugger     = new NUnitTestDebugger(debuggerService, messageService, testResultsMonitor, options);
        }
        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);
        }
        public MockCodeCoverageTestRunnerFactory()
        {
            ProcessRunner      = new MockProcessRunner();
            TestResultsMonitor = new MockTestResultsMonitor();
            Options            = new UnitTestingOptions(new Properties());
            FileSystem         = new MockFileSystem();
            CodeCoverageTestRunnerContext context = new CodeCoverageTestRunnerContext(ProcessRunner,
                                                                                      TestResultsMonitor,
                                                                                      FileSystem,
                                                                                      MessageService,
                                                                                      Options);

            TestRunner = new CodeCoverageTestRunner(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 #8
0
 public void Init()
 {
     testResultsMonitor = new MockTestResultsMonitor();
 }
		public void Init()
		{
			testResultsMonitor = new MockTestResultsMonitor();
		}