Integration Testing FTP Connections in .Net

added by wiredone
9/26/2012 6:11:53 AM

0 Kicks, 17 Views

When writing testable code your first port of call is often to abstract any dependencies and make them easy to mock. This is the same for any of your codebase that talks to FTP servers. Testing the way your code behaves under real world conditions makes integration tests important regardless of abstraction though. Here’s a simple trick to test FTP code in the wild.