public void TestGetJsonCardsFromUrl() { Assert.True(JsonCardFactory.GetJsonCardsFromUrl(new Uri(JsonUri)).Count > 0); }
public void TestGetJsonCardsFromUrlWithXmlDeck() { Assert.Equal(DeckSize, JsonCardFactory.GetJsonCardsFromUrl(new Uri(JsonUri), GetDefaultXmlDeck()).Count); }
public void TestGetJsonCardsFromInvalidUrl() { _ = Assert.Throws <Newtonsoft.Json.JsonReaderException>(() => JsonCardFactory.GetJsonCardsFromUrl(new Uri("http://www.google.com"))); }