What are some of the tricks or tools or policies (besides standard unit testing) that you guys use to write better unit tests? For the best, I mean that "covers as much of your code as possible as few tests as possible." I am talking about the things you used, and I saw that your unit tests are improving by the hour, not by the day.
As an example, I tried to try out Pex , and I thought it was really really good. There were tests that I missed, and Pex easily showed me where. Unfortunately, it has a rather restrictive license.
So, what are some other great things you guys use / do?
EDIT: Lots of good answers. I will mark it as the correct answer, which I do not practice now, but I will definitely try, and I hope it will give the best win. Thanks to everyone.
source
share