Hi
I would like to unit test the following method
public IEnumerable<T> GetData<T>(StreamReader fileStream) where T : new()
The streamreader needs to be a file in CSV format, with particular column names.
Is it possible to create such files in code, rather than having to have lots of them on the file system for each unit test?
Any ideas?
UPDATE:
just realised the library I am using Linq2Csv, has methods for doing exactly this