Welcome to MSDN Blogs Sign in | Join | Help

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.

Published Tuesday, April 03, 2007 9:41 AM by mpuleio

Comments

# re: Using the Testable Object Pattern

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

Sunday, April 08, 2007 5:04 AM by malovicn
Anonymous comments are disabled
 
Page view tracker