public async void ListAddresses_NegativeConfirmations_ArgumentOutOfRangeException() { await Assert.ThrowsAsync <ArgumentOutOfRangeException>(async() => { using (BlockchainApiHelper apiHelper = UnitTestUtil.GetFakeHelper()) { Wallet.Wallet wallet = this.GetWallet(apiHelper); await wallet.ListAddressesAsync(-1); } }); }
public async void GetAddresses_Valid() { using (BlockchainApiHelper apiHelper = new BlockchainApiHelper()) { Wallet.Wallet wallet = apiHelper.InitializeWallet(WalletTests.WALLET_ID, WalletTests.WALLET_PASSWORD, WalletTests.WALLET_PASSWORD2); List <WalletAddress> addresses = await wallet.ListAddressesAsync(); Assert.NotNull(addresses); Assert.NotEmpty(addresses); Assert.True(addresses.Any(a => string.Equals(a.AddressStr, WalletTests.FIRST_ADDRESS))); } }