public void GetFiles_must_have_files_in_Debug_folder() { IDirectoryInfo directoryWrap = new DirectoryInfoWrap(new DirectoryWrap().GetCurrentDirectory()); IFileInfo[] fileInfoWraps = directoryWrap.GetFiles(); Assert.IsTrue(fileInfoWraps.Length > 0); }
/// <summary> /// Returns information about files in a given location /// </summary> /// <param name="directoryPath">The path to check</param> /// <returns>Details about files in the given location</returns> public IEnumerable <IFileInfo> GetFilesInDirectory(string directoryPath) { var directoryInfo = new DirectoryInfoWrap(directoryPath); return(directoryInfo.GetFiles()); }