public void CreateDirWhenDirExists() { Dir422 dir = _root.CreateDir("Dir1"); Assert.NotNull(dir); Assert.AreEqual("Dir1", dir.Name); Assert.AreEqual("FSROOT", dir.Parent.Name); }
public void CreateDirWithEmptyNameShouldReturnNull() { StdFSDir dir = new StdFSDir(); dir = (StdFSDir)dir.CreateDir(""); Assert.Null(dir); }
public void CreateDirWithBackwardSlashInNameShouldReturnNull() { StdFSDir dir = new StdFSDir(); dir = (StdFSDir)dir.CreateDir("\\bad\\name"); Assert.Null(dir); }
public void CreateDirS() { StdFSDir dir = new StdFSDir(good_path, false); dir.CreateDir("d6"); Dir422 gotten_file = dir.GetDir("d6"); Assert.AreEqual("d6", gotten_file.Name); }