Unit Testing a CSV Parser and Column Mapping Tool

Posted by PieterG on Stack Overflow See other posts from Stack Overflow or by PieterG
Published on 2010-05-20T09:59:15Z Indexed on 2010/05/20 10:40 UTC
Read the original article Hit count: 192

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about unit-testing

Related posts about .NET