예제 #1
0
        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);
        }
예제 #2
0
        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);
        }