public void CanInitializeUsingStringAndEncoding()
        {
            var text = "foobar";

            IProtectedValue value = new UnprotectedValue(text, Encoding.UTF8);

            Assert.That(value.GetValue(), Is.EqualTo(Encoding.UTF8.GetBytes(text)));
        }
        public void TheByteArrayPassedToTheByteArrayConstructorIsReturnedByGetValueMethod()
        {
            var data = new byte[] { 1, 2, 3 };

            IProtectedValue value = new UnprotectedValue(data);

            Assert.That(value.GetValue(), Is.EqualTo(data));
        }
        public void TheBase64EncodedStringPassedToTheStringConstructorIsDecodedAndReturnedByGetValueMethod()
        {
            var data = new byte[] { 1, 2, 3 };
            var stringData = Convert.ToBase64String(data);

            IProtectedValue value = new UnprotectedValue(stringData);

            Assert.That(value.GetValue(), Is.EqualTo(data));
        }