public void TestDeserializeCryptopia() { CryptopiaAPI api = new CryptopiaAPI(); List <CryptopiaCurrency> priceList = api.LoadPrice(); Assert.AreEqual(true, priceList.Count > 0); }
public void TestLoadCurrencyFromCryptopia() { CryptopiaAPI api = new CryptopiaAPI(); List <CryptopiaCurrency> coins = api.LoadPrice(); foreach (ExchangeCurrency coin in coins) { Debug.WriteLine(string.Format("{0} bid={1} ask={2} last={3} volume={4} ", coin.symbol, coin.bid, coin.ask, coin.last, coin.volume)); } Assert.AreEqual(true, coins.Count > 0); }