Beispiel #1
0
        public void UnlockWalletTestWrongPassword()
        {
            // Arrange
            LndClient lndClient = new LndClient("test_password");

            // Act and Assert
            Assert.ThrowsException <RpcException>(() => lndClient.UnlockWallet("wrong_password"));
        }
Beispiel #2
0
        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);
            }
        }
Beispiel #3
0
 public void UnlockWalletTestWrongPassword()
 {
     Assert.ThrowsException <RpcException>(() => LndClient.UnlockWallet("wrong_password"));
 }