Пример #1
0
        public void Validate_HashSupport_NoException()
        {
            var validator = new CspSourceConfigurationValidator(true);

            validator.Validate(_plainSource);
            validator.Validate(_hashSource);
        }
Пример #2
0
        public void Validate_NoHashSupport_ThrowsOnHashSource()
        {
            var validator = new CspSourceConfigurationValidator(false);

            validator.Validate(_plainSource);
            Assert.Throws <ConfigurationErrorsException>(() => validator.Validate(_hashSource));
        }