Example #1
0
 public void FactMethodName()
 {
     using (var s = new MarbleScheduler())
     {
         var source = s.Cold("---a---b-|");
         var subs   = "^--!";
         var d      = source.Subscribe();
         s.ScheduleAbsolute(30, () => d.Dispose());
         s.ExpectSubscriptions(source.Subscriptions).ToBe(subs);
     }
 }
Example #2
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);
        }