コード例 #1
0
        public void simple_synchronous_call_getprices_returns_result()
        {
            SimpleClient client = new SimpleClient();
            Price        prices = client.GetPrices(Network.Bitcoin, "EUR");

            Assert.IsNotNull(prices);
            Assert.IsTrue(prices.Status == Consts.Success);
        }
コード例 #2
0
        public void should_simple_synchronous_call_getprices_with_bad_address_returns_empty_list()
        {
            SimpleClient client = new SimpleClient();
            Price        prices = client.GetPrices(Network.Bitcoin, Consts.Wrong);

            Assert.IsNotNull(prices);
            Assert.IsTrue(prices.Status == Consts.Success);
            Assert.IsTrue(prices.Data.Prices.Count == 0);
        }