Exemple #1
0
        public void AddAbsoluteToDrivePlusDirectory()
        {
            var          pt        = new PathTable();
            AbsolutePath drive     = AbsolutePath.Create(pt, A("c", "windows", "system32"));
            AbsolutePath directory = drive.CreateRelative(pt, A("c", "windows"));

            AbsolutePath fullDirectory = AbsolutePath.Create(pt, A("c", "windows"));

            XAssert.AreEqual(directory, fullDirectory);
            XAssert.AreEqual(A("c", "windows"), directory.ToString(pt));
        }