public void TestRebindSamePort() { int port; using (var response = new ResponseSocket()) { port = response.BindRandomPort("tcp://127.0.0.1"); response.Unbind(); } using (var response = new ResponseSocket()) { response.Bind($"tcp://127.0.0.1:{port}"); response.Unbind(); } }