private void TestDirectory(MemoryArchive ma) { DirectoryEntry de = ma.GetDirectory("/somename"); Assert.AreEqual(de.Name, "somename"); Assert.AreEqual(de.Files.Count, 0); Assert.AreEqual(de.Directories.Count, 0); }
private void CheckSubdirs(MemoryArchive ma) { DirectoryEntry de = ma.GetDirectory("/subdirs"); DirectoryEntry subde = de.Directories[0]; Assert.AreEqual(subde.Name, "sub"); Assert.AreEqual(subde.Files.Count, 0); Assert.AreEqual(subde.Directories.Count, 0); }