public void WrapUnwrapEquals()
        {
            const string prefix = "-TESTPREFIX-";
            const string value  = "hello there";

            var wrappedValue   = ValueWrapper.Wrap(prefix, value);
            var unwrappedValue = ValueWrapper.Unwrap(prefix, wrappedValue);

            Assert.AreEqual(value, unwrappedValue);
        }
        public void UnwrapMethodWrongParameterThrowsException()
        {
            const string emptyParam  = "";
            const string filledParam = "param value";

            var actions = new List <Action>
            {
                () => ValueWrapper.Unwrap(null, null),
                () => ValueWrapper.Unwrap(filledParam, null),
                () => ValueWrapper.Unwrap(null, filledParam),
                //
                () => ValueWrapper.Unwrap(emptyParam, emptyParam),
                () => ValueWrapper.Unwrap(filledParam, emptyParam),
                () => ValueWrapper.Unwrap(emptyParam, filledParam)
            };

            foreach (var action in actions)
            {
                Assert.ThrowsException <ArgumentException>(action);
            }
        }
 protected virtual string Unwrap(string value)
 {
     return(ValueWrapper.Unwrap(Prefix, value));
 }