public void Init()
        {
            MockRunTestCommandContext context = new MockRunTestCommandContext();

            runProjectTestsInPadCommand       = new RunProjectTestsInPadCommand(context);
            runProjectTestsInPadCommand.Owner = this;
            runProjectTestsInPadCommand.Run();
        }
示例#2
0
 public void InitBase()
 {
     if (!PropertyService.Initialized)
     {
         PropertyService.InitializeService(String.Empty, String.Empty, String.Empty);
     }
     context        = new MockRunTestCommandContext();
     runTestCommand = new DerivedRunTestCommand(context);
 }
        public void Init()
        {
            context         = new MockRunTestCommandContext();
            processRunner   = new MockProcessRunner();
            debuggerService = new MockDebuggerService();

            testFramework = new MockNUnitTestFramework(debuggerService,
                                                       processRunner,
                                                       context.MockTestResultsMonitor,
                                                       context.UnitTestingOptions,
                                                       context.MessageService);

            testRunner   = testFramework.CreateTestRunner() as NUnitTestRunner;
            testDebugger = testFramework.CreateTestDebugger() as NUnitTestDebugger;
        }
示例#4
0
        public void InitBase()
        {
            project      = new MockCSharpProject();
            buildProject = new MockBuildProjectBeforeTestRun();

            context = new MockRunTestCommandContext();
            context.MockUnitTestsPad.AddProject(project);
            context.MockBuildProjectFactory.AddBuildProjectBeforeTestRun(buildProject);

            debuggerService = new MockDebuggerService();
            testFramework   =
                new MockNUnitTestFramework(debuggerService,
                                           context.MockTestResultsMonitor,
                                           context.UnitTestingOptions,
                                           context.MessageService);
            context.MockRegisteredTestFrameworks.AddTestFrameworkForProject(project, testFramework);

            runCommand = new DerivedRunTestWithDebuggerCommand(context);
        }
        public void Init()
        {
            MockCSharpProject project       = new MockCSharpProject();
            SelectedTests     selectedTests = new SelectedTests(project);

            helper = new NUnitConsoleApplication(selectedTests);

            context = new MockRunTestCommandContext();
            context.MockUnitTestsPad.AddProject(project);

            buildProject = new MockBuildProjectBeforeTestRun();
            context.MockBuildProjectFactory.AddBuildProjectBeforeTestRun(buildProject);

            processRunner = new MockProcessRunner();

            testFramework = new MockNUnitTestFramework(processRunner, context.MockTestResultsMonitor, context.UnitTestingOptions);
            context.MockRegisteredTestFrameworks.AddTestFrameworkForProject(project, testFramework);

            runCommand = new DerivedRunTestInPadCommand(context);
        }
 void CreateRunTestCommand()
 {
     runTestCommandContext = new MockRunTestCommandContext();
     runTestCommand        = new DerivedRunTestCommand(runTestCommandContext);
 }
示例#7
0
        public void UnitTestingOptionsIsNotNull()
        {
            MockRunTestCommandContext context = new MockRunTestCommandContext();

            Assert.IsNotNull(context.UnitTestingOptions);
        }
        public void Init()
        {
            MockRunTestCommandContext context = new MockRunTestCommandContext();

            runTestCommand = new DerivedRunTestCommand(context);
        }
示例#9
0
 public void Init()
 {
     context = new MockRunTestCommandContext();
     mockCodeCoverageTestRunnerFactory = new MockCodeCoverageTestRunnerFactory();
     command = new DerivedRunTestWithCodeCoverageCommand(context, mockCodeCoverageTestRunnerFactory);
 }
		public void UnitTestingOptionsIsNotNull()
		{
			MockRunTestCommandContext context = new MockRunTestCommandContext();
			Assert.IsNotNull(context.UnitTestingOptions);
		}