public void UnlockWalletTestRightPassword() { try { UnlockWalletResponse response = LndClient.UnlockWallet(new LndClientConfiguration().WalletPassword); } catch (RpcException e) { // Wallet is already unlocked Assert.AreEqual("unknown service lnrpc.WalletUnlocker", e.Status.Detail); } }
public void UnlockWalletTestRightPassword() { // Arrange LndClient lndClient = new LndClient("test_password"); // Act and Assert try { UnlockWalletResponse response = lndClient.UnlockWallet("test_password"); } catch (RpcException e) { // Wallet is already unlocked Assert.AreEqual("unknown service lnrpc.WalletUnlocker", e.Status.Detail); } }