示例#1
0
        public void GetParentS()
        {
            FileSys422 fileSystem = StandardFileSystem.Create(good_path);
            Dir422     root       = fileSystem.GetRoot();
            Dir422     dir        = root.GetDir("d6");

            Assert.AreEqual("files", dir.Parent.Name);
        }
示例#2
0
        public void AbsolutePathRootS()
        {
            FileSys422 fileSystem = StandardFileSystem.Create(good_path);

            Dir422 root = fileSystem.GetRoot();

            string absolutePath = Utility.AbsolutePath(root);

            Assert.AreEqual("/files", absolutePath);
        }
示例#3
0
        public void AbsolutePathRegS()
        {
            FileSys422 fileSystem = StandardFileSystem.Create(good_path);

            Dir422 root = fileSystem.GetRoot();

            Dir422 dirD6 = root.GetDir("d6");

            Dir422 dirD7 = dirD6.GetDir("d7_l2");

            string absolutePath = Utility.AbsolutePath(dirD7);

            Assert.AreEqual("/files/d6/d7_l2", absolutePath);
        }