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);
        }
Ejemplo n.º 2
0
        public void CreateTestRunnerCreatesNewCodeCoverageTestRunner()
        {
            CodeCoverageTestRunner expectedTestRunner = mockCodeCoverageTestRunnerFactory.TestRunner;

            Assert.AreEqual(expectedTestRunner, command.CallCreateTestRunner(null));
        }