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