Using NUnit and FakeItEasy to create fake objects automatically for your tests

From time to time I get to teach and mentor Java developers on the fine art of unit testing. There are many similarities when unit testing in Java and .NET but more interesting are the differences between the two. Faking objects in Java using MockitoOne of the well-used Java Isolation (Mocking) frameworks is called Mockito … Continue reading Using NUnit and FakeItEasy to create fake objects automatically for your tests

Unit and integration are ambiguous names for tests–and that’s ok

In my not-so-distant past I needed to write a component which would control an air conditioning unit.My application needed to send commands to the external device (on, off, set temperature) and read information from it (room temperature, humidity etc.)And so I came with the following:It’s a bit simplistic but the idea was that the client … Continue reading Unit and integration are ambiguous names for tests–and that’s ok

Broken windows and software development

In 1969 a car with no license plates was parked with it’s hood up in the Bronx. Within minutes it was vandalized and stripped. That car was part of an experiment to test a theory called “broken windows”.The Broken windows theoryThe original broken windows theory was introduced in 1982:Consider a building with a few broken … Continue reading Broken windows and software development