public void DecryptWalletFail() { // equivalent to entering an incorrect password string badKey = "4854AFEC5F6F1EBD6B28903C3A580832"; EncryptWallet(); Assert.Throws <CryptographicException>(() => FileSecurity.DecryptWalletFile(_path, badKey)); }
public void DecryptWallet() { EncryptWallet(); Assert.DoesNotThrow(() => FileSecurity.DecryptWalletFile(_path, _key)); }