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

The_TCP_transport_implementation_should_properly_handle_connection_abort_via_PoisonPill_from_client_side() private method

        public void The_TCP_transport_implementation_should_properly_handle_connection_abort_via_PoisonPill_from_client_side()
        {
            new TestSetup(this).Run(x =>
            {
                var actors = x.EstablishNewClientConnection();
                actors.ClientHandler.Send(actors.ClientConnection, PoisonPill.Instance);
                VerifyActorTermination(actors.ClientConnection);

                actors.ServerHandler.ExpectMsg<Tcp.ErrorClosed>();
                VerifyActorTermination(actors.ServerConnection);
            });
        }