public void FireDisposeStartedEventTriggersEvent() { DisposeStartedEventArgs eventArgs = null; testRunnerEvents.DisposeStarted += delegate(object sender, DisposeStartedEventArgs e) { eventArgs = e; }; testRunnerEvents.FireDisposeStartedEvent(); Assert.IsNotNull(eventArgs); }
void DisposeStarted(object source, DisposeStartedEventArgs e) { writer.Dispose(); }