public void URI_Join() { Aver.AreEqual("static/site/content", URIUtils.JoinPathSegs("static", "site", "content")); Aver.AreEqual("static/site/content", URIUtils.JoinPathSegs(" static", " site ", " content")); Aver.AreEqual("static/site/content", URIUtils.JoinPathSegs(" static", " \\ site ", " // content")); Aver.AreEqual("static/site/content", URIUtils.JoinPathSegs(" static/", "//site ", " // content")); Aver.AreEqual("static/site/content", URIUtils.JoinPathSegs(" static/", "/", "/site", "// content")); Aver.AreEqual("/static/site/content", URIUtils.JoinPathSegs("/static/", "/", "/site", "// content")); Aver.AreEqual("/static/site/content", URIUtils.JoinPathSegs(" /static/", "site", "\\content")); Aver.AreEqual("/static/site/content", URIUtils.JoinPathSegs(" ", null, " /static/", "site", "\\content")); Aver.AreEqual("static/site/content", URIUtils.JoinPathSegs("static", null, "site", "", "", "\\content")); }