public void Withdraw_ShouldUnauthorizedThrowException_IfNoApiKeyIsGiven() { var bittrex = new Bittrex(); Func <Task> action = async() => { var _ = await bittrex.Withdraw(DefaultCurrency, 0, DefaultTargetAddress); }; action.ShouldThrow <UnauthorizedException>(); }
public void Withdraw_ShouldNotThrowException() { var bittrex = new Bittrex(DefaultApiKey, DefaultApiSecret); Func <Task> action = async() => { var _ = await bittrex.Withdraw(DefaultCurrency, 0, DefaultTargetAddress); }; action.ShouldNotThrow(); }