예제 #1
0
        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());
        }
예제 #2
0
        public void Main_Disposed_Handler_Completes()
        {
            var us = new UnicastSubject <int>();

            us.RepeatWhen(v => Observable.Empty <int>())
            .Test()
            .AssertResult();

            Assert.False(us.HasObserver());
        }