public IEnumerator Sender_AddQuest_Destroy_AddQuest() { int count = 0; FPClient client = new FPClient("52.83.245.22", 13325, 20 * 1000); client.Connect(); yield return(new WaitForSeconds(1.0f)); FPData data = new FPData(); data.SetFlag(0x1); data.SetMtype(0x1); data.SetMethod("which"); this._sender.AddQuest(client, data, this._payload, (cbd) => { count++; }, 5 * 1000); this._sender.Destroy(); this._sender.AddQuest(client, this._data, this._payload, (cbd) => { count++; }, 5 * 1000); yield return(new WaitForSeconds(1.0f)); this._sender.Destroy(); client.Close(); yield return(new WaitForSeconds(1.0f)); Assert.AreEqual(1, count); }
public IEnumerator Sender_AddQuest() { int count = 0; FPClient client = new FPClient("52.83.245.22", 13325, 20 * 1000); client.Connect(); yield return(new WaitForSeconds(1.0f)); this._sender.AddQuest(client, this._data, this._payload, (cbd) => { count++; }, 5 * 1000); yield return(new WaitForSeconds(2.0f)); this._sender.Destroy(); client.Close(); yield return(new WaitForSeconds(1.0f)); Assert.AreEqual(1, count); }