public static void Main(string[] args) { Pathc path = new Pathc("/a/b/c/d"); Console.WriteLine(path.Cd("../x").CurrentPath); }
public void Path_Root_ReturnsRoot() { Pathc path = new Pathc("/"); Assert.AreEqual("/", path.CurrentPath); }
public void Cd_WithComplexPath_ReturnsComplexPath() { Pathc path = new Pathc("/a/b/c/d"); path.Cd(".."); Assert.AreEqual("/a/b/c", path.CurrentPath); }