The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Unit testing and TDD

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
Eric Gunnerson

Posts: 1006
Nickname: ericgu
Registered: Aug, 2003

Eric Gunnerson is a program manager on the Visual C# team
Unit testing and TDD Posted: Aug 2, 2003 12:13 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Eric Gunnerson.
Original Post: Unit testing and TDD
Feed Title: Eric Gunnerson's C# Compendium
Feed URL: /msdnerror.htm?aspxerrorpath=/ericgu/Rss.aspx
Feed Description: Eric comments on C#, programming and dotnet in general, and the aerodynamic characteristics of the red-nosed flying squirrel of the Lesser Antilles
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Eric Gunnerson
Latest Posts From Eric Gunnerson's C# Compendium

Advertisement

Back in March, I wrote a column entitled "Unit Testing and Test-First Development".

I've been playing around with unit testing a bit more since then, and have a few tentative conclusions.

  1. Unit testing is, overall, a "Good Thing"
  2. Unit testing works well for class libraries, especially ones that act fairly statically. If you create one of these, you should be writing unit tests
  3. Unit testing is hard with graphical applications and/or dynamic applications. I have an app that I'm writing that uses multiple threads, fires events asynchronously, and is peer to peer. There aren't any unit tests for that section yet.
  4. Unit testing is great for tricky code that you wrote but weren't sure that it really worked. I updated my Regex Workbench a while back, and in the process wrote unit tests for all the code that I have that interprets regular expressions to english. I found one feature I hadn't implemented, and two that were implemented incorrectly. I'm now much more confident that it works.

I'e also been playing with Test-driven development. I'm not sure about it yet, though it is true that if you write the tests up front, you're much more likely to write them.

Read: Unit testing and TDD

Topic: UK Developer Events Planning Previous Topic   Next Topic Topic: New Book on PocketPC Programming

Sponsored Links



Google
  Web Artima.com   

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