Exemplo n.º 1
0
        public void DecryptWalletFail()
        {
            // equivalent to entering an incorrect password
            string badKey = "4854AFEC5F6F1EBD6B28903C3A580832";

            EncryptWallet();

            Assert.Throws <CryptographicException>(() => FileSecurity.DecryptWalletFile(_path, badKey));
        }
Exemplo n.º 2
0
 public void DecryptWallet()
 {
     EncryptWallet();
     Assert.DoesNotThrow(() => FileSecurity.DecryptWalletFile(_path, _key));
 }