public void ItShouldReturnCryptos() { #region Act var response = _cryptoController.Get() as OkObjectResult; var cryptos = response.Value as IEnumerable <Crypto>; #endregion #region Assert Assert.Equal(3, cryptos.Count()); #endregion }
public async void Test_Get_Crypto_Result() { var result = await _controller.Get(It.IsAny <Guid>()); Assert.IsType <ActionResult <RestException> >(result); }