public async Task Info() { CryptocurrencyInfoResponse singleResult = await this.client.GetCryptocurrencyInfo("BTC"); Assert.IsTrue(singleResult.Data.Count == 1); Assert.IsTrue(singleResult.Data["BTC"].Symbol.ToLower() == "btc"); CryptocurrencyInfoResponse multiResult = await this.client.GetCryptocurrencyInfo("BTC", "ETH"); Assert.IsTrue(multiResult.Data.Count == 2); Assert.IsTrue(multiResult.Data["ETH"].Symbol.ToLower() == "eth"); }
public async Task InfoTest() { CryptocurrencyInfoResponse response = await this.client.InfoAsync(null, "eth"); Assert.IsNotNull(response); CryptocurrencyInfo ethInfo; if (!response.Data.TryGetValue("ETH", out ethInfo)) { throw new Exception("ETH not found in response"); } Assert.IsTrue(ethInfo.Name.ToLower() == "ethereum"); }