public void StrictDynamic_SetsStrictDynamic()
        {
            var directive = new CspDirective();

            directive.StrictDynamic();

            Assert.True(directive.StrictDynamicSrc);
        }
        public void None_DirectiveSourcesConfigured_ThrowsException()
        {
            var directiveSelf          = new CspDirective();
            var directiveSources       = new CspDirective();
            var directiveUnsafeInline  = new CspDirective();
            var directiveUnsafeEval    = new CspDirective();
            var directiveStrictDynamic = new CspDirective();

            directiveSelf.Self();
            directiveSources.CustomSources("https:");
            directiveUnsafeInline.UnsafeInline();
            directiveUnsafeEval.UnsafeEval();
            directiveStrictDynamic.StrictDynamic();

            Assert.Throws <InvalidOperationException>(() => directiveSelf.None());
            Assert.Throws <InvalidOperationException>(() => directiveSources.None());
            Assert.Throws <InvalidOperationException>(() => directiveUnsafeInline.None());
            Assert.Throws <InvalidOperationException>(() => directiveUnsafeEval.None());
            Assert.Throws <InvalidOperationException>(() => directiveStrictDynamic.None());
        }