public void FromSelf_ReturnsCorrectString()
        {
            var builder = new CspWorkerBuilder();

            builder.FromSelf();
            CspWorkerSrcOptions options = builder.BuildOptions();

            Assert.Equal("worker-src 'self'", options.ToString(null));
        }
        public void FromSelf_SetsAllowSelfToTrue()
        {
            var builder = new CspWorkerBuilder();

            builder.FromSelf();
            CspWorkerSrcOptions options = builder.BuildOptions();

            Assert.True(options.AllowSelf);
        }