Akka.Streams.Tests.Actor.ActorSubscriberSpec.ActorSubscriberSpec_should_cancel_incoming_subscription_when_cancel_was_called_before_it_arrived C# (CSharp) Method

ActorSubscriberSpec_should_cancel_incoming_subscription_when_cancel_was_called_before_it_arrived() private method

        public void ActorSubscriberSpec_should_cancel_incoming_subscription_when_cancel_was_called_before_it_arrived()
        {
            var actorRef = Sys.ActorOf(ImmediatelyCancelledSubscriber.Props(TestActor));
            var sub = new ActorSubscriberImpl<object>(actorRef);
            Watch(actorRef);
            ExpectNoMsg(200);
            sub.OnSubscribe(new CancelSubscription(TestActor));
            ExpectMsg("cancel");
            ExpectTerminated(actorRef, TimeSpan.FromMilliseconds(200));
        }