public void ListenForMessageTest() { server.OnNewClientRequest += Server_OnNewMessageRecived; NetworkLib.Client client = new NetworkLib.Client("localhost", "30003"); Assert.IsTrue(client.isConnected()); Thread.Sleep(1000); client.sendMessage("Client//"); Thread.Sleep(1000); server.sendMessage(this.ID, "test"); server.stopServer(); }
public void ClientTest() { NetworkLib.Client client = new NetworkLib.Client("127.0.0.1", "30003"); Assert.IsTrue(client.isConnected()); client.stopService(); }