BDS Live Template to create NUnit test method in C#

Posted by Kirby Turner on July 29, 2006

Here is the BDS Live Template I wrote to create an NUnit test method shell for a C# class.



Method name


Unit test method

Kirby Turner - White Peak Software Inc

public void $name$()
$*$Assert.Fail("Not implemented.");$end$


The template will generate the following C# code:

public void MyUnitTest()
Assert.Fail(“Not implemented.”);

Posted in programming. Tagged in csharp.

Related Articles