I\'m developing a small TCP server, which will process some TCP packets and behave differently based on the request.
How can I write unit test for this? If it\'s really
I can't give you any specific helpers as your question is fairly open-ended.
However it sounds as though you'd want to write a mock server/client depending on your needs. It'd be worth looking at Rhino Mocks.
You might also want to take a look at Oren's NMemCached project which implements a cache server using a custom TCP/IP implementation. That project has some interesting unit/integration tests written using Rhino Mocks.