Exemple #1
0
        public async Task TableManagerClient_TestIsolated()
        {
            Log.Level = 3;
            Log.Debug("debug line should not be in a release build");
            this.clientEventBus = new BridgeEventBus("TM_Client");
            var client = new TestClient(this.clientEventBus);

            client.Connect(Seats.North, 120, 60, "RoboNS");

            await client.WaitForCompletionAsync();
        }
Exemple #2
0
        public async Task TableManagerTcpClient_TestIsolated()
        {
            int uniqueTestPort = 2004;
            var host           = new TestHost(uniqueTestPort);

            Log.Level = 2;
            var client = new TestClient(new BridgeEventBus("TM_Client.North"));

            client.Connect(Seats.North, "localhost", uniqueTestPort, 120, 60, "RoboNS");

            await host.WaitForCompletionAsync();
        }
Exemple #3
0
        /// <summary>
        ///   The init client.
        /// </summary>
        /// <returns>
        ///   the test client
        /// </returns>
        protected virtual TestClient InitClient()
        {
            var client = new TestClient(Settings.UseTcp);

            client.Connect(Settings.ServerAddress, Settings.Port, "Lite");

            if (client.WaitForConnect(this.WaitTime) == false)
            {
                Assert.Fail("Didn't received init response in expected time.");
            }

            return(client);
        }
Exemple #4
0
        /// <summary>
        /// The init client.
        /// </summary>
        /// <returns>
        /// a test client
        /// </returns>
        protected virtual TestClient InitClient()
        {
            var client = new TestClient(true);

            client.Connect("localhost", 4530, "LiteLobby");

            if (client.WaitForConnect(this.WaitTime) == false)
            {
                Assert.Fail("Didn't received init response in expected time.");
            }

            return(client);
        }
Exemple #5
0
        protected virtual TestClient InitClient()
        {
            IPhontonClient photonClient = this.CreateClient();
            TestClient     client       = new TestClient(photonClient);

            client.Connect("localhost", 4530);
            client.SendInit(0);

            if (client.WaitForInitResponse(this.WaitTime) == false)
            {
                Assert.Fail("Didn't received init response in expected time.");
            }

            return(client);
        }
Exemple #6
0
 // Use this for initialization
 void Start()
 {
     t = new TestClient();
     t.Connect();
     return;
 }