public void CanCombinePathsThatContainSlashes() { VolumePath path = VolumePath.FromString("/test"); VolumePath combined = path.Combine("sub1/sub2"); VolumePath combined2 = path.Combine("sub1/.."); Assert.AreEqual(3, combined.Depth); Assert.AreEqual(1, combined2.Depth); }
public void CanCombinePaths() { VolumePath path = VolumePath.FromString("/test"); VolumePath combined = path.Combine("sub1", "sub2"); VolumePath combined2 = path.Combine(".."); Assert.AreEqual(3, combined.Depth); Assert.AreEqual(0, combined2.Depth); }