예제 #1
0
        public void WalletDeposit()
        {
            MogwaiWallet wallet = new MogwaiWallet("test.dat");

            Assert.IsNull(wallet.Deposit);
            wallet.Unlock("1234");
            Assert.IsNotNull(wallet.Deposit);
            Assert.AreEqual("MBAdzUJU1zyUJLfiUDuvU8zWjenxzi7ZF6", wallet.Deposit.Address);
        }
예제 #2
0
        public void WalletUnlock()
        {
            MogwaiWallet wallet = new MogwaiWallet("test.dat");

            Assert.IsTrue(wallet.IsCreated);
            Assert.IsFalse(wallet.IsUnlocked);
            wallet.Unlock("1234");
            Assert.IsTrue(wallet.IsUnlocked);
        }