public void Folders_Should_Indicate_Whether_They_Are_Empty_Or_Not() { //the test folder is not empty, but contains not sub folders and files testFolder.RefreshMetaData(); Assert.IsFalse(testFolder.MetaData.IsEmpty); //add sub folder to folder a folderA.AddFolder("x"); folderA.RefreshMetaData(); Assert.IsFalse(folderA.MetaData.IsEmpty); //add sub files to folder b folderA.AddFile(Context.DownloadFile0Template.FullName, "xxx.bin", false); folderA.RefreshMetaData(); Assert.IsFalse(folderA.MetaData.IsEmpty); //folder c is still empty folderC.RefreshMetaData(); Assert.IsTrue(folderC.MetaData.IsEmpty); }