private DirectoryMock GivenDirectory(string directoryName) { var directoryMock = DirectoryMock.CreateDirectory(directoryName); fileSystem.Add(directoryName, directoryMock); return(directoryMock); }
private Folder CreateFolder(DirectoryMock folderMock) { var folder = new Folder { NumberOfFiles = folderMock.Files.Count }; if (Progress != null) { Progress(folder); } return(folder); }
private static void StartAndWait(IFolderStats folderStats, DirectoryMock root, int millisecondsTimeout) { folderStats.Connect(root.Name); folderStats.Start(); Thread.Sleep(millisecondsTimeout); }
private Folder CreateFolder(DirectoryMock folderMock) { var folder = new Folder { NumberOfFiles = folderMock.Files.Count }; if (Progress != null) { Progress(folder); } return folder; }