コード例 #1
0
        public void Required_spec203_blackbox_mustNotCallMethodsOnSubscriptionOrPublisherInOnComplete()
        => BlackboxSubscriberWithoutSetupTest(stage =>
        {
            var subscriber   = CreateSubscriber();
            var subscription = new Spec203Subscription(Environment, "OnComplete");
            subscriber.OnSubscribe(subscription);
            subscriber.OnComplete();

            Environment.VerifyNoAsyncErrorsNoDelay();
        });
コード例 #2
0
        public void Required_spec203_mustNotCallMethodsOnSubscriptionOrPublisherInOnComplete()
        => SubscriberTestWithoutSetup(stage =>
        {
            var subscription = new Spec203OnCompleteSubscription(this);
            stage.Probe      = stage.CreateWhiteboxSubscriberProbe(_environment);
            var subscriber   = CreateSubscriber(stage.Probe);

            subscriber.OnSubscribe(subscription);
            subscriber.OnComplete();

            _environment.VerifyNoAsyncErrorsNoDelay();
        });