65873 members! Sign up to stay informed.

Sponsored Links


Resources

.NET Research Library
Get .NET related white papers, case studies and webcasts

Blogs Blogs Blogs Messages: 0 Messages: 0 Messages: 0 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

If you generate tests from code, is that TDD?

Posted by: Jack Vaughan on February 19, 2008 DIGG
Writes Bob Martin: TDD is the act of using tests as a way to drive the development of the system. You write unit test code first, and then you write the application code that makes that code pass. Clearly, generating tests from existing code violates that simple rule.

He continues:
In TDD, programmers state their intent twice; once in the test code, and again in the production code. These two statements of intent verify each other. The tests, test the intent of the code, and the code tests the intent of the tests. This works because it is a human that makes both entries! The human must state the intent twice, but in two complementary forms. This vastly reduces many kinds of errors; as well as providing significant insight into improved design.


http://blog.objectmentor.com/articles/2008/01/10/generated-tests-and-tdd
Featured SectionFeatured SectionFeatured Section
Weekly Blogs UpdateWeekly Blogs UpdateWeekly Blogs Update
Stay current on the most informative blogs in the .NET community. Join TheServerSide.net and sign up for the Blogs Update. Let TheServerSide.net do the work for you -- we scan thousands of blogs to find the ones most worthy of your attention.
Extra ContentExtra ContentExtra Content

NET Blog View

TheServerSide.NET Site Editor Jack Vaughan reviews highlights and sidelights from the world of Microsoft software development.

Windows Presentation Foundation and your architecture - Where does it fit?

Windows Presentation Foundation (WPF) is a new client user interface technology that ships as part of .NET 3.0. (November 2, Article)

XAML finds common ground

Opening up the SDLC to non-engineers requires re-examination of processes and clarification of roles, according to Burton Group's Chris Howard. (November 20, Article)

The Old New Thing

These chapters explain the quirks behind the user interface design of Windows and the complexity of GetWindowText. (November 9, Book Excerpt)

Inside MS Speechwriters' HQ

When it is time for a keynote, the crew at Redmond is ready. But words don't always flow. Today we take you behind the scenes for a look at great speeches in the making. Come with us now to Microsoft Speechwriters' Headquarters. Cool! (December 18, Cartoon)

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
All Content Copyright ©2007 TheServerSide Privacy Policy
Site Map