public void EncryptedValueIsSameAsOriginalValue()
        {
            var encryptedSecString = new EncryptedSecureString();

            encryptedSecString.SetValue(_clearTextData);
            var decryptedData = encryptedSecString.GetClearTextValue();

            Assert.That(decryptedData, Is.EqualTo(_clearTextData));
        }
        public void CreatingMultipleEncryptedSecureStrings()
        {
            var encString1 = new EncryptedSecureString();

            encString1.SetValue(_clearTextData);
            var encString2 = new EncryptedSecureString();

            encString2.SetValue("somevalue");
            var decryptedString = encString1.GetClearTextValue();

            Assert.That(decryptedString, Is.EqualTo(_clearTextData));
        }