コード例 #1
0
        public void GetDepositAddress_ShouldUnauthorizedThrowException_IfNoApiKeyIsGiven()
        {
            var         bittrex = new Bittrex();
            Func <Task> action  = async() => { var _ = await bittrex.GetDepositAddress(DefaultCurrency); };

            action.ShouldThrow <UnauthorizedException>();
        }
コード例 #2
0
        public void GetDepositAddress_ShouldNotThrowException()
        {
            var         bittrex = new Bittrex(DefaultApiKey, DefaultApiSecret);
            Func <Task> action  = async() => { var _ = await bittrex.GetDepositAddress(DefaultCurrency); };

            action.ShouldNotThrow();
        }