public void Main_Disposed_Handler_Errors() { var us = new UnicastSubject <int>(); us.RepeatWhen(v => Observable.Throw <int>(new InvalidOperationException())) .Test() .AssertFailure(typeof(InvalidOperationException)); Assert.False(us.HasObserver()); }
public void Main_Disposed_Handler_Completes() { var us = new UnicastSubject <int>(); us.RepeatWhen(v => Observable.Empty <int>()) .Test() .AssertResult(); Assert.False(us.HasObserver()); }