Coffee Notes: The Domain Test Values Class


Coffee Notes: The Domain Test Values Class - Blog Entry by Christopher GrantHere’s an interesting clip on optimizing the way you write Unit tests. In his Blog entry, Dave Bower presents a pattern for using meaningful terminologies rather than literals in your tests.

    http://manbuildswebsite.com/2010/12/20/domain-test-values/

While literals are typically a code smell in stadard coding, I personally have seen quite a few in unit tests. Applying the solid coding practices Brower presents will make your tests easier to read and maintain.

Advertisements
Coffee Notes: The Domain Test Values Class

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s