コード例 #1
0
        public void CryptonatorApi_OneTicket_Usd_Rub()
        {
            var cmc    = new CryptonatorApi();
            var ticket = cmc.GetTicker($"USD-Rub");

            Assert.AreEqual(ticket.Base, "USD");
        }
コード例 #2
0
        public void CryptonatorApi_OneTicket_XMR_Usd()
        {
            var cmc    = new CryptonatorApi();
            var ticket = cmc.GetTicker($"{Coins.Monero}-Rub");

            Assert.AreEqual(ticket.Base.ToLower(), Coins.Monero);
        }
コード例 #3
0
        public void CryptonatorApi_OneTicket_BitCoin_Usd()
        {
            var cmc    = new CryptonatorApi();
            var ticket = cmc.GetTicker($"{Coins.BitCoin}-USD");

            Assert.AreEqual(ticket.Base.ToLower(), Coins.BitCoin);
        }