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