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