Updated my Live Template for NUnit in ReSharper

May 9, 2009

I tend to use a lot the Live Template of ReSharper, for example working for some time now with the WPF MVVM pattern I created a ViewModel template of such a class and use it extensively.

Today I updated the File Template I use to write my NUnit tests like this:

using NUnit.Framework;

namespace \(NAMESPACE\)
{
    // ReSharper disable InconsistentNaming

    [TestFixture]
    public class \(CLASSNAME\)
    {       
        /*
         * ... hold ...
         *
         * Arrange - Act - Assert
         */

        [Test]
        public void \(FIRST_TEST_NAME\)()
        {
            \(END\)
        }
    }

   // ReSharper restore InconsistentNaming
}

where I have the variable names defined as this: