public void Validate_NoneWithSource_ThrowsException() { _configElement.NoneSrc = true; _configElement.Sources.Add(new CspSourceConfigurationElement { Source = ValidSource }); Assert.Throws <ConfigurationErrorsException>(() => _validator.Validate(_configElement)); }
public void Validate_Self_NoException() { _configElement.SelfSrc = true; _validator.Validate(_configElement); }