public void AppendQueryParam() { var url = new UrlBuilder("http://www.shoutem.com/app"); url.AppendQueryParam("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()); }