/// <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(); }
public void GetFiles_must_have_files_in_Debug_folder() { IDirectoryInfoWrap directoryWrap = new DirectoryInfoWrap(new DirectoryWrap().GetCurrentDirectory()); IFileInfoWrap[] fileInfoWraps = directoryWrap.GetFiles(); Assert.IsTrue(fileInfoWraps.Length > 0); }