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

The_TCP_transport_implementation_dont_report_Connected_when_endpoint_isnt_responding() private method

        public void The_TCP_transport_implementation_dont_report_Connected_when_endpoint_isnt_responding()
        {
            var connectCommander = CreateTestProbe();
            // a "random" endpoint hopefully unavailable since it's in the test-net IP range
            var endpoint = new IPEndPoint(IPAddress.Parse("192.0.2.1"), 23825);
            connectCommander.Send(Sys.Tcp(), new Tcp.Connect(endpoint));
            // expecting CommandFailed or no reply (within timeout)
            var replies = connectCommander.ReceiveWhile(TimeSpan.FromSeconds(1), x => x as Tcp.Connected);
            replies.Count.ShouldBe(0);
        }