示例#1
0
        public void CreateFileWhenFileExists()
        {
            File422 file = _root.CreateFile("file1");

            Assert.NotNull(file);
            Assert.AreEqual("file1", file.Name);
            Assert.AreEqual("FSROOT", file.Parent.Name);
        }
示例#2
0
        public void CreateFileS()
        {
            StdFSDir dir = new StdFSDir(good_path, false);

            dir.CreateFile("f4");

            File422 gotten_file = dir.GetFile("f4");

            Assert.AreEqual("f4", gotten_file.Name);
        }