public void RpcMethod(int senderId)
 {
     Assert.AreNotEqual(senderId, _client.UserId);
     _count++;
     if (_count == _otherClientsNum)
     {
         _client.Disconnect();
     }
 }
        public void Connect_Tcp_WithValidAddress()
        {
            var client = new IguagileClient();

            client.Open += () => client.Disconnect();
            var pool = new Semaphore(0, 1);

            client.Close   += () => pool.Release(1);
            client.OnError += e => Assert.Fail(e.Message);
            client.Connect(ServerAddress, PortTcp, Protocol.Tcp);
            pool.WaitOne();
        }