February 1, 2011
How to open file in testable way?
One of the most common problems in Test-Driven Development are parts of code which need to make some calls to your system environment. In general you is such situation you are forced to use some global functions which are really hard to test or mock. So lets look on some code and lets try to make it more testable.