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);
 }
コード例 #3
0
        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);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
 void CreateRunTestCommand()
 {
     runTestCommandContext = new MockRunTestCommandContext();
     runTestCommand        = new DerivedRunTestCommand(runTestCommandContext);
 }
コード例 #7
0
        public void UnitTestingOptionsIsNotNull()
        {
            MockRunTestCommandContext context = new MockRunTestCommandContext();

            Assert.IsNotNull(context.UnitTestingOptions);
        }
コード例 #8
0
        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);
 }
コード例 #10
0
		public void UnitTestingOptionsIsNotNull()
		{
			MockRunTestCommandContext context = new MockRunTestCommandContext();
			Assert.IsNotNull(context.UnitTestingOptions);
		}