public MultiplexedTestRunner(IUnityContainer container, IOptions options) : base(container) { _options = options; UpdateImplementation(); foreach (var implementation in _implementations.Values) { implementation.DebuggingStarted += (o, e) => DebuggingStarted?.Invoke(this, e); implementation.TestStarted += (o, e) => TestStarted?.Invoke(this, e); implementation.TestExecuted += (o, e) => TestExecuted?.Invoke(this, e); implementation.TestLogAdded += (o, e) => TestLogAdded?.Invoke(this, e); implementation.TestsAborted += (o, e) => TestsAborted?.Invoke(this, e); implementation.TestsFailed += (o, e) => TestsFailed?.Invoke(this, e); implementation.TestsFinished += (o, e) => TestsFinished?.Invoke(this, e); implementation.TestsStarted += (o, e) => TestsStarted?.Invoke(this, e); } options.PropertyChanged += OnOptionChanged; }
protected void OnDebuggingStarted() { _dispatcher.BeginInvoke(() => DebuggingStarted?.Invoke(this, EventArgs.Empty)); }