Akka.Tests.IO.TcpIntegrationSpec.The_TCP_transport_implementation_should_properly_handle_connection_abort_via_PoisonPill_from_server_side C# (CSharp) Method

The_TCP_transport_implementation_should_properly_handle_connection_abort_via_PoisonPill_from_server_side() private method

        public void The_TCP_transport_implementation_should_properly_handle_connection_abort_via_PoisonPill_from_server_side()
        {
            new TestSetup(this).Run(x =>
            {
                var actors = x.EstablishNewClientConnection();
                actors.ServerHandler.Send(actors.ServerConnection, PoisonPill.Instance);
                VerifyActorTermination(actors.ServerConnection);

                actors.ClientHandler.ExpectMsg<Tcp.ErrorClosed>();
                VerifyActorTermination(actors.ClientConnection);
            });
        }