Unit Testing a CSV Parser and Column Mapping Tool
- by PieterG
I am really starting to enjoy unit testing and have the following question to the gurus of unit testing.
Let's for example say I have the following class
public class FileMapper
{
public Dictionary<string, string> ReadFile(string filename, string delimeter){}
}
How do you guys generally go about unit testing a Parser or ReadFile method in my case?