public void GetOrderBookAsyncWithNullLimitTest() { var client = new HitRestApi(); var symbol = "BTCUSD"; var response = client.GetOrderBookAsync(symbol, null).Result; ResponseBasicCheck(response); Assert.AreEqual(DEFAULT_CONTENT_LENGTH, response.Result.Asks.Length); Assert.AreEqual(DEFAULT_CONTENT_LENGTH, response.Result.Bids.Length); }
public void GetOrderBookAsyncWithZeroLimitTest() { var client = new HitRestApi(); var symbol = "BTCUSD"; var response = client.GetOrderBookAsync(symbol, 0).Result; ResponseBasicCheck(response); Assert.AreNotEqual(0, response.Result.Asks.Length); Assert.AreNotEqual(0, response.Result.Bids.Length); }