public void SetQueryParamToEmtpy()
        {
            var url = new UrlBuilder("http://www.shoutem.com/app");
            url.SetQueryParam("nid", string.Empty);

            var param = url.GetQueryParam("nid");
            Assert.AreEqual(string.Empty, param.ToString());
        }
        public void SetExistingQueryParam()
        {
            var url = new UrlBuilder("http://www.shoutem.com/app?nid=123");
            url.SetQueryParam("nid", 321);

            var param = url.GetQueryParam("nid");
            Assert.AreEqual("321", param.ToString());
        }
        public void SetQueryParamToNull()
        {
            var url = new UrlBuilder("http://www.shoutem.com/app");
            url.SetQueryParam("nid", null);

            var param = url.GetQueryParam("nid");
            Assert.AreEqual(null, param);
        }
        public void SetQueryParam()
        {
            var url = new UrlBuilder("http://www.shoutem.com/app");
            url.SetQueryParam("nid", 123);

            var param = url.GetQueryParam("nid");
            Assert.AreEqual("123", param.ToString());
        }
        public void AppendExistingQueryParam()
        {
            var url = new UrlBuilder("http://www.shoutem.com/app");
            url.SetQueryParam("role", "moderator");
            url.AppendQueryParam("role", "admin");

            var paramList = url.GetQueryParam("role") as IList<object>;
            var param1 = paramList[0];
            var param2 = paramList[1];

            Assert.AreEqual("moderator", param1.ToString());
            Assert.AreEqual("admin", param2.ToString());
        }