Getting started with Fake Objects – Part 2: How to create a fake object

In the previous post I’ve explained (briefly) what are fake objects and why they should be used – if you haven’t read it yet – I suggest you do so now. In  a nutshell fake objects are used to break dependencies in unit tests to make the test faster, predictable and enable you to test … Continue reading Getting started with Fake Objects – Part 2: How to create a fake object

Getting started with Fake Objects – Part 1: why fake is better then mock

If you’ve been writing unit tests for a short while you might have noticed that writing good unit tests is hard. The object under test can be hard to create because it require dependencies that you just cannot provide or some complicated environment is needed just to make the test pass. When writing a unit … Continue reading Getting started with Fake Objects – Part 1: why fake is better then mock