public void AddDirectoryTest() { var parent = new Directory("ParentName"); var subDir = new Directory("SubDir"); parent.AddDirectory(subDir); CollectionAssert.Contains(parent.SubDirs, subDir); }