public void IsRunning_returns_false_after_error_with_subscribers(BufferSubject <string> sut, IObserver <string> observer, Exception error) { sut.Subscribe(observer); sut.OnError(error); Assert.That(sut.IsRunning, Is.False); }
public void Late_subscriber_is_notified_when_error(BufferSubject <string> sut, IObserver <string> observer, Exception error) { sut.OnError(error); sut.Subscribe(observer); observer.HasError(error); }
public void Second_late_with_early_first_subscriber_is_notified_when_error(BufferSubject <string> sut, IObserver <string> first, IObserver <string> second, Exception error) { sut.Subscribe(first); sut.OnError(error); sut.Subscribe(second); second.HasError(error); }
public void IsRunning_returns_false_after_error(BufferSubject <string> sut, Exception error) { sut.OnError(error); Assert.That(sut.IsRunning, Is.False); }