示例#1
0
        public void Should_expect_subscription_on_a_cold_observable()
        {
            var source       = _scheduler.CreateColdObservable("---a---b-|");
            var subscription = source.Subscribe();

            _scheduler.ScheduleAbsolute(subscription, 90, (scheduler, sub) =>
            {
                sub.Dispose();
                return(Disposable.Empty);
            });

            var subs = "^--------!";

            _scheduler.ExpectSubscription(source.Subscriptions).ToBe(subs);
        }