Пример #1
0
        public void GetValueReturnsTheBase64DecodedValueOfTheValueProperty()
        {
            string base64 = GetBase64();

            var unprotectedValue = new UnprotectedBase64Value {
                Value = base64
            };

            Assert.Equal(Convert.FromBase64String(base64), unprotectedValue.GetValue());
        }
Пример #2
0
        public void GetValueThrowsInvalidOperationExceptionWhenUninitialized()
        {
            var unprotectedValue = new UnprotectedBase64Value();

            Assert.Throws <InvalidOperationException>(() => unprotectedValue.GetValue());
        }