public void From_AddsUrlToAllowedSources()
        {
            var builder = new CspStylesBuilder();

            builder.From("www.google.com");
            CspStyleSrcOptions options = builder.BuildOptions();

            Assert.Equal("www.google.com", options.AllowedSources.Single());
        }
        public void From_ThrowsArgumentException_WithEmptyUrl()
        {
            var builder = new CspStylesBuilder();

            Assert.Throws <ArgumentException>(() => builder.From(string.Empty));
        }
        public void From_ThrowsArgumentNullException_WithNullUrl()
        {
            var builder = new CspStylesBuilder();

            Assert.Throws <ArgumentNullException>(() => builder.From(null));
        }