An example of bad test, part 2

Let us take a look at this test. When I saw it, the code under test called to me: "Help me, I being intimately harassed here!" The problem is that this tests knows all sorts of unrelated things about the code under test. It knows that it should Read More...

Read the complete post at http://ayende.com/Blog/archive/2008/08/17/An-example-of-bad-test-part-2.aspx

Published Saturday, August 16, 2008 10:45 PM by Test Driven Development