Programmers are familiar with the DRY principle: Don’t Repeat Yourself. That’s great advice for production code. But tests are different. For tests, use WET: Write Explicit Tests. The two lead to different results. Let’s look at an example. In a talk today, James Grenning presented an example something like this (his was in C, but I’m … Continue reading "WET: When DRY Doesn’t Apply"