Could you please offer some assistance.
I have a situation where I have a file parsing class that I am testing.
I want to be able to substitute out one of the method calls with a mock.
How might I mock this method within the class I am actually testing?
i.e.
FileParser fileParser = new FileParser(fileName);
int recordCount = fileParser.GetRecordCount();
So, in the example above I would like to test the concrete implementation of FileParser but replace the method GetRecordCount with a mock method.
Hope someone can enlighten me.
Thanks for what so far I have found to be an intuitive product.