public void SetPathWithTrailingSlash()
        {
            var url = new UrlBuilder("http://www.shoutem.com/nid");
            url.SetPath("app/nid/");

            Assert.AreEqual("app/nid/", url.GetPath());
        }
        public void SetPathToEmpty()
        {
            var url = new UrlBuilder("http://www.shoutem.com/nid/");
            url.SetPath(string.Empty);

            Assert.AreEqual("http://www.shoutem.com/", url.ToString());
        }
Esempio n. 3
0
        public void SetPathToNull()
        {
            var url = new UrlBuilder("http://www.shoutem.com/");
            url.SetPath(null);

            Assert.AreEqual(null, url.GetPath());
        }