Esempio n. 1
0
            public void When_UsingPointToParent(string input, string expectedOutput)
            {
                PathRef pathRef = new PathRef(input);

                Assert.That(() => { pathRef.PointToParent(); }, Throws.Nothing);
                Assert.That(pathRef.ToString(), Is.EqualTo(expectedOutput));
            }
Esempio n. 2
0
            public void Navigation()
            {
                PathRef pathRef = new PathRef("DirA/DirB");

                pathRef.PointToParent();
                Assert.That(pathRef.PosixPath, Is.EqualTo(@"DirA"));
                pathRef.PointToChild("DirC");
                Assert.That(pathRef.PosixPath, Is.EqualTo(@"DirA/DirC"));
            }