3
shouts

TDD: Testing with generic abstract classes - Mark Needham

posted by StevesSteves 181 days, 5 hours, 32 minutes ago
Friday, September 18, 2009 2:02:59 PM GMT

In a post I wrote earlier in the week I described a dilemma we were having testing some code which made use of abstract classes and Perryn Fowler, Liz Keogh and Pat Maddox pointed out that a useful approach for this problem would be to make use of an abstract test class.

The idea here is that we create an equivalent hierarchy to our production code for our tests which in the example that I provided would mean that we have roughly the following setup...

category: Architecture | clicked: 7 | | source: www.markhneedham.com | show counter code
tags: TDD, Test, Test Driven Development, Testing

No comments yet, be the first one to post comment.

To post your comment please login or signup