Esempio n. 1
0
        public void invalidTokenTest()
        {
            GetOneDeckRequest req  = new GetOneDeckRequest("7822", id, invalidToken, "getOneDeck");
            string            json = JsonConvert.SerializeObject(req);
            string            res  = sendNetworkRequest(json);

            Assert.IsTrue(res.Contains("Invalid token"));
        }
Esempio n. 2
0
        public void invalidTokenTest()
        {
            GetOneDeckRequest req  = new GetOneDeckRequest("7822", Constants.MY_ID, Constants.INVALID_TOKEN, "getOneDeck");
            string            json = JsonConvert.SerializeObject(req);
            string            res  = sendNetworkRequestHere(json);

            Assert.IsTrue(res.Contains("Invalid token"));
        }
Esempio n. 3
0
        public void getOneDeckTest()
        {
            GetOneDeckRequest req  = new GetOneDeckRequest("7822", id, validToken, "getOneDeck");
            string            json = JsonConvert.SerializeObject(req);
            string            res  = sendNetworkRequest(json);

            Assert.IsFalse(res.Contains("Error"));
        }
Esempio n. 4
0
        public void getOneDeckTest()
        {
            GetOneDeckRequest req  = new GetOneDeckRequest("7822", Constants.MY_ID, Constants.VALID_TOKEN, "getOneDeck");
            string            json = JsonConvert.SerializeObject(req);
            string            res  = sendNetworkRequestHere(json);

            Assert.IsFalse(res.Contains("Error"));
        }