public void GenerateFoldersTestFileSizeAllDir() { Folder sample = new Folder("..\\..\\SampleDir"); DirectoryStructureDemo.GenerateFolders(sample); long expectedFileSize = 66; long actualFileSize = sample.GetSize(); Assert.AreEqual(expectedFileSize, actualFileSize); }
/// <summary> /// Mains this instance. /// </summary> public static void Main() { // Console.WriteLine("The folder is big. Wait a moment..."); Folder root = new Folder(ROOT_DIRECTORY); GenerateFolders(root); Console.WriteLine("Folder: " + root.Name); // Console.WriteLine(errorLog); Console.WriteLine("Size in bytes: " + root.GetSize()); }