|
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?
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 |
 |
 |
|
|
Extra ContentExtra ContentExtra Content |
 |
 |
TheServerSide.NET Site Editor Jack Vaughan reviews highlights and sidelights from the world of Microsoft software development.
Windows Presentation Foundation (WPF) is a new client user interface technology that ships as part of .NET 3.0.
(November 2, Article)
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)
These chapters explain the quirks behind the user interface design of Windows and the complexity of GetWindowText.
(November 9, Book Excerpt)
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)
|
|