public void MessageTest()
 {
     var comm = new TcpClientCommunicator("127.0.0.1", 3001);
     comm.Initialize();
     var resp = comm.SendMessage<Response>(new GenericMessage<string>("Hello World"));
     Assert.NotNull(resp);
     Assert.IsTrue(resp.Success);
 }
 public void CallbackTest()
 {
     var comm = new TcpClientCommunicator("127.0.0.1", 3001);
     comm.Initialize();
     comm.SendMessage<Response>(new GenericMessage<string>("Hello World"), resp =>
         {
             Assert.NotNull(resp);
             Assert.IsTrue(resp.Success);
         });
     Thread.Sleep(100);
 }