Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        public void IsRunning_returns_false_after_error(BufferSubject <string> sut, Exception error)
        {
            sut.OnError(error);

            Assert.That(sut.IsRunning, Is.False);
        }