Resharper Live Templates for TDD bliss
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
tdd-livetemplates.xml

README.md

These templates reduce the amount of keystrokes required to write NUnit tests. The tdd-livetemplates.xml file is in a format that can be imported into Jetbrains Resharper. To import into Resharper, use the Resharper options dialog and be on your way to TDD bliss.

The live templates introduce the following templates:

// typing test and hitting TAB invokes this template
[Test]
public void TESTNAME()
{

}

// typing tf and hitting TAB invokes this template
using NUnit.Framework;

namespace NAMESPACE
{
    [TestFixture]
    public class CLASSNAMEFixture
    {
        [Test]
        public void TESTNAME()
        {
    
        }
    }
}

// typing te and hitting TAB invokes this template
[Test]
[ExpectedException(typeof(EXCEPTIONTYPE))]
public void TESTNAME()
{

}

// typing ti and hitting TAB invokes this template
[SetUp]
public void TestInitialize()
{

}

// typing td and hitting TAB invokes this template    
[TearDown]
public void TestCleanup()
{

}