I've been playing with Visual C# 2008 Express Edition
Obviously you want to unit test your programs there.
There are two options:
1. NUnit - http://www.nunit.org
2. ExpressUnit - http://www.dijksterhuis.org/setting-up-nunit-for-c-unit-testing-with-vis...
1. NUnit - This is the de-facto standard for unit testing, built after the xUnit framework.
The problem is that it won't work out of the box due to some limitations of the Express edition.
See full details here on how to work around this.
http://bjoernd.blogspot.com/2005/11/net-setting-up-nunit.html
The gist of it is that you add a post-build event that brings up the NUnit GUI. In my case it looks like this:
"C:\Program Files\NUnit 2.5\bin\net-2.0\nunit.exe" $(TargetFileName)
You do need to add the nunit.framework .NET reference to your project.
Some simple code that works:
<!-- code formatted by http://manoli.net/csharpformat/ -->
1: using System;
2: using System.Collections.Generic;
3: using System.Linq;
4: using System.Text;
5: using ExpressUnitModel;
6: using TimerLib;
7: 8: namespace ExpressUnitGui
9: { 10: [TestClass]11: public class TimerTest
12: { 13: [UnitTest]14: public void AddTest()
15: { 16: Confirm.Equals(4, 2 + 2); 17: } 18: 19: [UnitTest]20: public void SubtractTest()
21: {22: TimerLib.Timer t = new TimerLib.Timer();
23: Confirm.Equals("00:00:00", t.getData());
24: } 25: 26: } 27: } 28: