Skip to content

Instantly share code, notes, and snippets.

@mjul
Created January 13, 2012 15:18
Show Gist options
  • Save mjul/1606920 to your computer and use it in GitHub Desktop.
Save mjul/1606920 to your computer and use it in GitHub Desktop.
C# Unit Test "File Template" for Resharper (mstest)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace $namespace$
{
[TestClass]
public class $class_under_test$
{
[TestMethod, TestCategory("Unit")]
public void $SELSTART$Method_Scenario_ExpectedBehaviour$SELEND$()
{
$END$
}
}
}
Default file name:
ClassUnderTest.cs
(File name must be a valid identifier)
Macro Value settings:
$namespace$ is the "Default namespace for current file" (not editable occurrence)
$class_under_test$ is "Current file name without extension" (not editable occurrence)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment