public void MCreateFile() { MemoryFileSystem mfs = new MemoryFileSystem(); Dir422 dir1 = mfs.GetRoot().CreateDir("Dir1"); File422 file1 = dir1.CreateFile("File1"); Assert.NotNull(dir1); Assert.NotNull(mfs.Contains(dir1)); Assert.False(mfs.GetRoot().ContainsFile("File1", false)); Assert.True(mfs.GetRoot().ContainsFile("File1", true)); }
public void MemoryFileSystemContainsDirTest() { Dir422 c = root.GetDir("two").GetDir("a").GetDir("b").GetDir("c"); Assert.True(memFS.Contains(c)); }