Akka.Tests.IO.TcpIntegrationSpec.The_TCP_transport_implementation_should_allow_connecting_to_and_disconnecting_from_the_test_server C# (CSharp) Метод

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

        public void The_TCP_transport_implementation_should_allow_connecting_to_and_disconnecting_from_the_test_server()
        {
            new TestSetup(this).Run(x =>
            {
                var actors = x.EstablishNewClientConnection();
                actors.ClientHandler.Send(actors.ClientConnection, Tcp.Close.Instance);
                actors.ClientHandler.ExpectMsg<Tcp.Closed>();
                
                actors.ServerHandler.ExpectMsg<Tcp.PeerClosed>();
                VerifyActorTermination(actors.ClientConnection);
                VerifyActorTermination(actors.ServerConnection);
            });
        }