Esempio n. 1
0
        public void CreateNewDeck()
        {
            var    jsonData  = JObject.Parse(doca.createNewDeck(newResource));
            string remaining = (string)jsonData["remaining"];

            Assert.That(remaining, Is.EqualTo("52"));
        }
        public void CreateDeckAndDrawZeroCards()
        {
            var jsonData = JObject.Parse(doca.createNewDeck(newResource));

            deckId   = (string)jsonData["deck_id"];
            myParams = new Dictionary <string, string>();
            myParams.Add("count", "0");
            var    newJsonData = JObject.Parse(doca.drawCardsFromDeck(drawResource, deckId, myParams));
            string remaining   = (string)newJsonData["remaining"];

            Assert.That(remaining, Is.EqualTo("52"));
        }