public void AddsMultipleValuesWithSameNameToUrl()
        {
            var builder = new HttpUrlBuilder("http://localhost");

            builder.AddQuery("name", "value1");
            builder.AddQuery("name", "value2");

            Assert.Equal("?name=value1&name=value2", builder.ToUri().Query);
        }
        public void EncodesName()
        {
            var builder = new HttpUrlBuilder("http://localhost");

            builder.AddQuery("na/me", "value");

            Assert.Equal("?na%2Fme=value", builder.ToUri().Query);
        }
        public void WhenInitialUrlHasQueryString_AppendsQueryToExisting()
        {
            var builder = new HttpUrlBuilder("http://localhost?name1=value1");

            builder.AddQuery("name2", "value2");

            Assert.Equal("?name1=value1&name2=value2", builder.ToUri().Query);
        }
        public void AddsValueToUrl()
        {
            var builder = new HttpUrlBuilder("http://localhost");

            builder.AddQuery("name", "value");

            Assert.Equal("?name=value", builder.ToUri().Query);
        }