Posts tagged 'expressiness'

Félix Delval

Unit test with behavioural mock

In the previous artictle, we talked about a way to write more expressive unit test. Doing this we actually deffined the behaviour of our injected mocks.

So if we push this logic further, we should actually start extracting this code away from the test class to a pure behavior mock …