Wednesday, November 16, 2005

Behold the template


using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;

namespace $rootnamespace$
{
[TestFixture]
public class $safeitemname$
{
[TestFixtureSetUp]
public void DoTestSetup()
{
Console.WriteLine("Set up test");
}

[TestFixtureTearDown]
public void DoTestTearDown()
{
Console.WriteLine("Test Tear Down");
}

[SetUp]
public void TestSetup()
{
Console.WriteLine("Do test setup");
}
}


}


Now each time I want to create a class to do a load of tests I select my unit test class and denden immediate test. So yes today I have been continuing my test driven development of Converse. My faith in unit testing as something useful and non-faddish grows as I use it. It really does pick kill bugs. You still need an architecture before you start imo.

No comments: