Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        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);
            }
        }