I'm writing a simple webgame to experiment the DCI pattern and I was wondering how to test the context properly.
https://gist.github.com/1718889
I have a context CharacterAttacksAnotherCharacter
which take two characters and extend them with two roles (Attacker
and Target
). Then the context is executed.
But, how can I test the behaviour of this execution instead of the implementation?
Thanks!