The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Another TDD Sucess story

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Darrell Norton

Posts: 876
Nickname: dnorton
Registered: Mar, 2004

Darrell Norton is a consultant for CapTech Ventures.
Another TDD Sucess story Posted: May 27, 2004 11:10 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Darrell Norton.
Original Post: Another TDD Sucess story
Feed Title: Darrell Norton's Blog
Feed URL: /error.htm?aspxerrorpath=/blogs/darrell.norton/Rss.aspx
Feed Description: Agile Software Development: Scrum, XP, et al with .NET
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Darrell Norton
Latest Posts From Darrell Norton's Blog

Advertisement

It’s so easy to work with Test Driven Development. For example, I recently had to go in and debug a data access method. Well, I was supposed to just add tests for it, but I ended up having to debug it. Hehe.

There were 3 DataTables, so instead of testing all three at once and trying to figure out the error I was getting, I commented out two and just returned the first one in the DataSet. Green!

Ok, then I enabled the call to the database for the second one. Red! So I looked at the stored proc and typed dataset, quickly figured out it was a mapping issue, and fixed the stored proc. Run NUnit again. Green! Finally I re-added the last DataTable code and ran NUnit. Green!

All done and no debugger was necessary (sorry John Robbins!). And this only took a couple of minutes. All it takes is for you to start using TDD where you can. Just start by writing some tests around some code that you work with every day. I guarantee it will help.


This Blog Hosted On: http://www.DotNetJunkies.com/

Read: Another TDD Sucess story

Topic: INETA Board/Committee head meeting at TechEd San Diego Previous Topic   Next Topic Topic: Blogging and .NET Nightly

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use