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")); }
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")); }
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")); }
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")); }