Using the Testable Object Pattern


Wow.  Five posts on unit testing and/or EDD in a row... this has got to be a record.


Brad has a great post on the Testable Object Pattern.  I've used this pattern on my own code without realizing it, as I also don't like "magic" setup and tear down methods that rely on a particular implementation of a unit testing framework.


Enjoy writing those examples first.

Comments (1)
  1. malovicn says:

    I don’t like the idea so much because it doesn’t fit when we have a couple of presenter constructors and makes our test code bloated. I think presenter constructed with setter type dependency injection could better solve that problem of not being dependable on constructor signature changes

    I blogged about it on: http://blog.vuscode.com/archive/2007/04/05/the-testable-object-pattern.aspx

Comments are closed.

Skip to main content