I need to write unit test of an asynchronous method.
In my case I have client(simply tcp client). It send message to server(tcp server). Server takes this message asynchronously.
I want to get the message the server received and compare the message that client had sent.
How can I do this?
Mainly, I want to learn How to apply TDD to asynchronous methods.
Any help will be greately appreciated.