Posts tagged 'expressiveness'

Félix Delval

Writing expressive unit test with injected dependancy

Recently I have been facing problem writing maintainable unit test for code that is relying heavily on injected dependancy.

Sometimes you are facing code that is using multiple injected dependancies that should all be mocked for testing purpose. Mocking is a very effective pattern to test part of a system …