예제 #1
0
        public void GetStockIndexPrice_SymbolDeserializeTest()
        {
            ApiRequest.Debug = true;
            var stock = FinancialData.GetStockIndexPrice("AAPL").Result;

            Assert.AreEqual("AAPL", stock[0].symbol);
            ApiRequest.Debug = false;
        }
예제 #2
0
        public void GetStockIndexPrice_PriceDeserializeTest()
        {
            ApiRequest.Debug = true;
            var stock = FinancialData.GetStockIndexPrice("AAPL").Result;

            Assert.AreEqual(120.58, stock[0].price);
            ApiRequest.Debug = false;
        }
예제 #3
0
        public void GetStockIndexPrice_LengthTest()
        {
            ApiRequest.Debug = true;
            var stock = FinancialData.GetStockIndexPrice("AAPL").Result;

            Assert.AreEqual(1, stock.Length);
            ApiRequest.Debug = false;
        }