コード例 #1
0
 public SocketCmdLineTests()
 {
     _testServerPort = NetworkInfo.GetFreeLocalTcpPort();
     _server         = new SocketCommandLineServer(_testServerPort);
 }
コード例 #2
0
        public void NextFreeTcpPortShouldNotBeZero()
        {
            var port = NetworkInfo.GetFreeLocalTcpPort();

            Assert.True(port > 0);
        }