dimanche 12 juillet 2015

How to design and write test cases for sockets in Ruby

Suppose we have a little protocol implementen with sockets in Ruby.

When client socket connect to server socket, server say with "Hello" message and client reply with "Hi". If server get "Hi", it answer with "Bye".

This example of protocol is very simple.

How should I write test to prove that server and client does what it should do?

Aucun commentaire:

Enregistrer un commentaire