public void TestClientServer()
        {
            using (var server = new ThreadTransportDriver(32))
                using (var client = new ThreadTransportDriver(1))
                {
                    var server_addr = server.Listen();
                    Assert.NotNull(server.Listen().Source);

                    client.Connect(server_addr);
                    Assert.IsTrue(DoServerClientTest(server, client));
                }
        }
 public void TestCanListen()
 {
     using (var transport = new ThreadTransportDriver(1))
     {
         Assert.NotNull(transport.Listen().Source);
     }
 }
        public void Test1()
        {
            var serverDriver = new ThreadTransportDriver(16);

            serverDriver.Listen();

            Server.Data.World.CreateEntity().Set <IFeature>(new SoLoudBackendFeature(serverDriver));
            Client.Data.World.CreateEntity().Set <IFeature>(new AudioClientFeature(serverDriver.TransportAddress.Connect(), default));

            var request = Client.Data.World.CreateEntity();
            var str     = "Hello World!";

            request.Set(new Request {
                Value = str
            });

            Global.Loop();
            Global.Loop();


            Assert.AreEqual(str, Server.Data.World.Get <Request>()[0].Value);
        }