Testing

When you accept weakly typed data as input or have them as output, still convert them to strongly typed objects inside your application.

One of the more recent posts in my employer’s company blog is titled ‘What’s wrong with: “I don’t write any tests since I am not a tester”?’ – which made me think about the relation of developers to testing, and about the self-image of any developer who would say that sentence in earnest.

Don’t get me wrong. Unit tests are your friends when developing a class. But they should not be that class’ `friend`. Here’s why.

In my last post I have written about the main and secondary uses of unit tests and how they compare to other kinds of automated tests. This time I will explore what […]