public void GetDepositAddress_ShouldUnauthorizedThrowException_IfNoApiKeyIsGiven() { var bittrex = new Bittrex(); Func <Task> action = async() => { var _ = await bittrex.GetDepositAddress(DefaultCurrency); }; action.ShouldThrow <UnauthorizedException>(); }
public void GetDepositAddress_ShouldNotThrowException() { var bittrex = new Bittrex(DefaultApiKey, DefaultApiSecret); Func <Task> action = async() => { var _ = await bittrex.GetDepositAddress(DefaultCurrency); }; action.ShouldNotThrow(); }