public void GetDir() { StdFSDir dir = (StdFSDir)_root.GetDir("Dir1"); Assert.NotNull(dir); Assert.AreEqual("Dir1", dir.Name); Assert.AreEqual(_rootPath + "/Dir1", dir.Path); Assert.AreEqual(_root, dir.Parent); }
public void GetDirContainsPathCharF() { StdFSDir dir = new StdFSDir(good_path, false); Dir422 gotten_dir = dir.GetDir("d/3"); Assert.Null(gotten_dir); gotten_dir = dir.GetDir("d\\3"); Assert.Null(gotten_dir); }
public void GetDirWithEmptyNameShouldReturnNull() { StdFSDir dir = new StdFSDir(); dir = (StdFSDir)dir.GetDir(""); Assert.Null(dir); }
public void GetDirWithBackwardSlashInNameShouldReturnNull() { StdFSDir dir = new StdFSDir(); dir = (StdFSDir)dir.GetDir("\\bad\\name"); Assert.Null(dir); }
public void GetDirWithForwardSlashInNameShouldReturnNull() { StdFSDir dir = new StdFSDir(); dir = (StdFSDir)dir.GetDir("/bad/name"); Assert.Null(dir); }
public void GetDirS() { StdFSDir dir = new StdFSDir(good_path, false); Dir422 gotten_dir = dir.GetDir("d6"); Assert.AreEqual("d6", gotten_dir.Name); }
public void GetDirDosentExistF() { StdFSDir dir = new StdFSDir(good_path, false); Dir422 gotten_dir = dir.GetDir("d7"); Assert.Null(gotten_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); }