public void UnsafeEval_SetsUnsafeEval()
        {
            var directiveUnsafeEval = new CspDirective();

            directiveUnsafeEval.UnsafeEval();

            Assert.True(directiveUnsafeEval.UnsafeEvalSrc);
        }
        public void None_DirectiveSourcesConfigured_ThrowsException()
        {
            var directiveSelf = new CspDirective();
            var directiveSources = new CspDirective();
            var directiveUnsafeInline = new CspDirective();
            var directiveUnsafeEval = new CspDirective();
            directiveSelf.Self();
            directiveSources.CustomSources("https:");
            directiveUnsafeInline.UnsafeInline();
            directiveUnsafeEval.UnsafeEval();

            Assert.Throws<InvalidOperationException>(directiveSelf.None);
            Assert.Throws<InvalidOperationException>(directiveSources.None);
            Assert.Throws<InvalidOperationException>(directiveUnsafeInline.None);
            Assert.Throws<InvalidOperationException>(directiveUnsafeEval.None);
        }
        public void UnsafeEval_SetsUnsafeEval()
        {
            var directiveUnsafeEval = new CspDirective();
            
            directiveUnsafeEval.UnsafeEval();

            Assert.IsTrue(directiveUnsafeEval.UnsafeEvalSrc);
        }