public void TestEmptyRpcName()
        {
            using (RpcBroker broker = new RpcBroker("", validServerPort))
            {
                if (broker.Connect())
                {
                    broker.CallRpc("", "", "", null);

                    broker.Disconnect();
                }
                else
                {
                    Assert.Fail("No connection");
                }
            }
        }
        public void TestValidRpc()
        {
            using (RpcBroker broker = new RpcBroker("", validServerPort))
            {
                if (broker.Connect())
                {
                    RpcResponse response = broker.CallRpc("", "XUS INTRO MSG", "0", null);

                    Assert.AreEqual(RpcResponseStatus.Success, response.Status);

                    broker.Disconnect();
                }
                else
                {
                    Assert.Fail("No connection");
                }
            }
        }
        public void TestInvalidRpc()
        {
            using (RpcBroker broker = new RpcBroker("", validServerPort))
            {
                if (broker.Connect())
                {
                    RpcResponse response = broker.CallRpc("", "XXXXXX", "0", null);

                    if (response.Status == RpcResponseStatus.Success)
                    {
                        Assert.Fail("Success");
                    }

                    broker.Disconnect();
                }
                else
                {
                    Assert.Fail("No connection");
                }
            }
        }