Jon Tirsen offers some advice for how to write good unit tests. Although his examples make use of JUnit, the popular testing library for Java, they apply to any kind of unit testing.
All comments are moderated before publication. These HTML tags are permitted: <p>, <b>, <i>, <a>, and <blockquote>. This site is protected by reCAPTCHA (for which the Google Privacy Policy and Terms of Service apply).