Akka.Tests.Actor.ReceiveTimeoutSpec.An_actor_with_receive_timeout_must_be_able_to_turn_off_timeout_if_desired C# (CSharp) Метод

An_actor_with_receive_timeout_must_be_able_to_turn_off_timeout_if_desired() приватный Метод

        public void An_actor_with_receive_timeout_must_be_able_to_turn_off_timeout_if_desired()
        {
            var count = new AtomicCounter(0);

            var timeoutLatch = new TestLatch();
            var timeoutActor = Sys.ActorOf(Props.Create(() => new TurnOffTimeoutActor(timeoutLatch, count)));

            timeoutActor.Tell(new Tick());
            timeoutLatch.Ready(TestKitSettings.DefaultTimeout);
            count.Current.ShouldBe(1);
            Sys.Stop(timeoutActor);
        }