public async Task Connection_Test() { using (var ggChat = new GoodGameChat(new WebSocketClient(), new JsonParser(), null)) { await ggChat.ConnectAsync(new Uri(GG_API_CHAT_URI), null); Assert.IsTrue(ggChat.IsConnected); } }
public async Task AnonAuth_Test() { using (var ggChat = new GoodGameChat(new WebSocketClient(), new JsonParser(), null)) { await ggChat.ConnectAsync(new Uri(GG_API_CHAT_URI), null); await Task.Delay(500); Assert.IsTrue(ggChat.IsAuthorized); } }