/// <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; }
/// <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; }