public void EncryptedVault_properties_are_set()
        {
            var salt     = "salt".ToBytes();
            var key      = "key".ToBytes();
            var accounts = new EncryptedAccount[0];
            var vault    = new EncryptedVault(salt, key, accounts);

            Assert.Equal(salt, vault.MasterKeySalt);
            Assert.Equal(key, vault.EncryptedMasterKey);
            Assert.Same(accounts, vault.EncryptedAccounts);
        }
Ejemplo n.º 2
0
        public void EncryptedVault_properties_are_set()
        {
            var salt     = "salt".ToBytes();
            var key      = "key".ToBytes();
            var accounts = new EncryptedAccount[0];
            var vault    = new EncryptedVault(salt, key, accounts);

            Assert.That(vault.MasterKeySalt, Is.EqualTo(salt));
            Assert.That(vault.EncryptedMasterKey, Is.EqualTo(key));
            Assert.That(vault.EncryptedAccounts, Is.SameAs(accounts));
        }