What should I unit test?

Knowing what to test is difficult, but the important question you should always ask yourself is; “Am I just writing this test to increase the code coverage?” If the answer is yes, then chances are that test isn’t adding any value. Let’s look at an example I like to use; Here we have a custom […]