Пример #1
0
        public void SecureDecryptionTest()
        {
            Option option = new Option(new MultiLanguageString("Test"), new MultiLanguageString(string.Empty), new MultiLanguageString(string.Empty));

              Secure<Option> encryptedOption = new Secure<Option>(option, this.admin.OnlyPublicPart, this.admin);

              Assert.IsTrue(encryptedOption.Verify(this.storage));

              Option other = encryptedOption.Value.Decrypt(this.admin);

              Assert.IsTrue(other.ToBinary().Equal(option.ToBinary()));
        }