A factory for creating the unit test objects.
        /// <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);
        }
        /// <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);
        }