public void When_set_list_to_none_it_should_create_header_value_with_none()
        {
            var list = new CspSourceList();

            list.SetToNone();
            list.ToDirectiveValue().ShouldEqual("'none'");
        }
        public void When_set_list_to_none_adding_a_keyWord_should_throw_an_invalidOperationException()
        {
            var list = new CspSourceList();

            list.SetToNone();
            Assert.Throws <InvalidOperationException>(() => list.AddKeyword(SourceListKeyword.Self));
        }
        public void When_set_list_to_none_adding_a_host_should_throw_an_invalidOperationException()
        {
            var list = new CspSourceList();

            list.SetToNone();
            Assert.Throws <InvalidOperationException>(() => list.AddHost("http://www.example.com"));
        }
        public void When_set_list_to_none_adding_a_scheme_should_throw_an_invalidOperationException()
        {
            var list = new CspSourceList();

            list.SetToNone();
            Assert.Throws <InvalidOperationException>(() => list.AddScheme("http"));
        }
 public void When_set_list_to_none_it_should_create_header_value_with_none()
 {
     var list = new CspSourceList();
     list.SetToNone();
     list.ToDirectiveValue().ShouldEqual("'none'");
 }
 public void When_set_list_to_none_adding_a_scheme_should_throw_an_invalidOperationException()
 {
     var list = new CspSourceList();
     list.SetToNone();
     Assert.Throws<InvalidOperationException>(() => list.AddScheme("http"));
 }
 public void When_set_list_to_none_adding_a_keyWord_should_throw_an_invalidOperationException()
 {
     var list = new CspSourceList();
     list.SetToNone();
     Assert.Throws<InvalidOperationException>(() => list.AddKeyword(SourceListKeyword.Self));
 }
 public void When_set_list_to_none_adding_a_host_should_throw_an_invalidOperationException()
 {
     var list = new CspSourceList();
     list.SetToNone();
     Assert.Throws<InvalidOperationException>(() => list.AddHost("http://www.example.com"));
 }