Skip to content

Instantly share code, notes, and snippets.

@toeb
Created December 13, 2013 01:26
Show Gist options
  • Save toeb/7938574 to your computer and use it in GitHub Desktop.
Save toeb/7938574 to your computer and use it in GitHub Desktop.
test
Assert.AreEqual("~/", RelativePathUtility.Normalize(""));
Assert.AreEqual("~/", RelativePathUtility.Normalize("."));
Assert.AreEqual("~/", RelativePathUtility.Normalize("./"));
Assert.AreEqual("~/", RelativePathUtility.Normalize("/"));
Assert.AreEqual("~/", RelativePathUtility.Normalize("~/"));
Assert.AreEqual("~/test", RelativePathUtility.Normalize("test"));
Assert.AreEqual("~/test", RelativePathUtility.Normalize("./test"));
Assert.AreEqual("~/test/", RelativePathUtility.Normalize("./test/"));
Assert.AreEqual("~/test/test2", RelativePathUtility.Normalize("test/test2"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment