/// <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() : 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(); }
/// <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); }