Example #1
0
        private void Stop()
        {
            _logger.Debug("ContinuousTestRunner.Stop()");
            ConsoleTestCompleteMessage.WriteOutCompletionStatement(_testResultAggregator.CurrentReport, _startOfRun);
            _webBrowser.Stop();
            IsCurrentlyRunningTest = false;

            _eventSubscriptionManager.RemoveListener(_testResultAggregator);
            _testResultAggregator.Dispose();
            _testResultAggregator = null;
        }
Example #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         _eventSubscriptionManager.RemoveListener(_testResultAggregator);
         _testResultAggregator.Dispose();
     }
 }
Example #3
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         foreach (var browser in _webBrowsers)
         {
             browser.Dispose();
         }
         _eventSubscriptionManager.RemoveListener(this);
         _eventSubscriptionManager.RemoveListener(_testResultAggregator);
         _browserThreadWaitHandle.Close();
         _testResultAggregator.Dispose();
     }
 }