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)); }