public void Error_Delayed()
        {
            var us = new UnicastSubject <int>();

            var ts = us.ObserveOn(ImmediateScheduler.INSTANCE, true).Test();

            Assert.True(us.HasObserver());

            ts.AssertEmpty();

            us.EmitError(new InvalidOperationException(), 1, 2, 3, 4, 5, 6, 7, 8, 9, 10);

            ts.AssertFailure(typeof(InvalidOperationException), 1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
        }
        public void Basic_WithDelayError()
        {
            var us = new UnicastSubject <int>();

            var ts = us.ObserveOn(ImmediateScheduler.INSTANCE, true).Test();

            Assert.True(us.HasObserver());

            ts.AssertEmpty();

            us.EmitAll(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);

            Assert.False(us.HasObserver());

            ts.AssertResult(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
        }