internal IList <String> GetFiles() { //only one should be set if (String.IsNullOrEmpty(_file) && (String.IsNullOrEmpty(_path))) { throw new ArgumentException("sourceFile OR sourceFolder must be set"); } if (!String.IsNullOrEmpty(_file) && (!String.IsNullOrEmpty(_path))) { throw new ArgumentException("sourceFile OR sourceFolder must be set"); } if (!string.IsNullOrEmpty(_file)) { return new List <String> { _file } } ; return(_fileSystemHelper.FindInFoldersRecursively(_path, "*.*")); }