Does Linux Cure Cancer?
Posted by Ben on April 20, 2007
1 comment
Maybe it does…
I recently had a need to simulate an FTP server connection in some unit tests. Rather than developing a full test-server, for this purpose, I could easily simulate an FTP stream by creating it in memory, and then passing that stream to the functions that expect it: public Stream CreateTestStream(string text) { byte[] buff = [...]