The MockFtpServer project provides a mock/dummy FTPserver for testing FTP client code. It can be configured to return custom data or reply codes, to simulate either success or failure scenarios. Expected command invocations can also be verified.
This project has been moved to https://github.com/dx42/MockFtpServer.