A special type dedicated to keeping a running stack of the dispatch managers that are actually enabled for "work item" use. The current dispatcher is used by the test work item queue.
コード例 #1
0
        /// <summary>
        /// Initiate unit test harness.
        /// </summary>
        public UnitTestHarness()
        {
            _events            = new UnitTestHarnessEvents(this);
            State              = new TestHarnessState();
            LogProviders       = new List <LogProvider>();
            _queuedLogMessages = new Queue <LogMessage>();

            _globalExceptions = new GlobalExceptionHandler(GlobalUnhandledExceptionListener);
            _dispatcherStack  = new WorkItemsManager();
            Results           = new List <ScenarioResult>();
            LogWriter         = new UnitTestLogMessageWriter(this);
            LogicFactory      = new UnitTestLogicFactory(this);
        }
コード例 #2
0
        /// <summary>
        /// Initiate unit test harness.
        /// </summary>
        public UnitTestHarness()
            : base()
        {
            _globalExceptions = new GlobalExceptionHandler(GlobalUnhandledExceptionListener);
            _dispatcherStack = new WorkItemsManager();
            Results = new List<ScenarioResult>();
            LogWriter = new UnitTestLogMessageWriter(this);
            LogicFactory = new UnitTestLogicFactory(this);

            // Attach to publishing event
            Publishing += (sender, args) => ReportCodeCoverage(TestService);

            // Create the initial dispatcher tasks
            CreateHarnessTasks();
        }
コード例 #3
0
        /// <summary>
        /// Initiate unit test harness.
        /// </summary>
        public UnitTestHarness()
        {
            _events = new UnitTestHarnessEvents(this);
            State = new TestHarnessState();
            LogProviders = new List<LogProvider>();
            _queuedLogMessages = new Queue<LogMessage>();

            _globalExceptions = new GlobalExceptionHandler(GlobalUnhandledExceptionListener);
            _dispatcherStack = new WorkItemsManager();
            Results = new List<ScenarioResult>();
            LogWriter = new UnitTestLogMessageWriter(this);
            LogicFactory = new UnitTestLogicFactory(this);
        }