public void GetStockIndexPrice_SymbolDeserializeTest() { ApiRequest.Debug = true; var stock = FinancialData.GetStockIndexPrice("AAPL").Result; Assert.AreEqual("AAPL", stock[0].symbol); ApiRequest.Debug = false; }
public void GetStockIndexPrice_PriceDeserializeTest() { ApiRequest.Debug = true; var stock = FinancialData.GetStockIndexPrice("AAPL").Result; Assert.AreEqual(120.58, stock[0].price); ApiRequest.Debug = false; }
public void GetStockIndexPrice_LengthTest() { ApiRequest.Debug = true; var stock = FinancialData.GetStockIndexPrice("AAPL").Result; Assert.AreEqual(1, stock.Length); ApiRequest.Debug = false; }