public override object GetData(DeterministicRandom r) { if (needToAddFilesWithSearchPatterns) { UriList urisFromPathList = MakeUris(pathList); if (Uris == null) { Uris = urisFromPathList; } else { Uris.AddRange(MakeUris(pathList)); } needToAddFilesWithSearchPatterns = false; } return(r.NextItem <Uri>(Uris)); }