Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JuanjoFuchs/4319435 to your computer and use it in GitHub Desktop.
Save JuanjoFuchs/4319435 to your computer and use it in GitHub Desktop.
Resharper code template to rapidly create new tests. Just import the .DotSettings file into resharper templates explorer or pase the code in .cs into a new template.
[Test]
public void $Test$()
{
$SELSTART$Assert.Fail("Not yet implemented");$SELEND$
}
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=1CCA467D3460634792E903194CBBECED/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=1CCA467D3460634792E903194CBBECED/Shortcut/@EntryValue">test</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=1CCA467D3460634792E903194CBBECED/Description/@EntryValue">Create a new NUnit test</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=1CCA467D3460634792E903194CBBECED/Text/@EntryValue">[Test]&#xD;
public void $Test$()&#xD;
{&#xD;
$SELSTART$Assert.Fail("Not yet implemented");$SELEND$&#xD;
}</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=1CCA467D3460634792E903194CBBECED/Reformat/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=1CCA467D3460634792E903194CBBECED/ShortenQualifiedReferences/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=1CCA467D3460634792E903194CBBECED/Categories/=NUnit/@EntryIndexedValue">NUnit</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=1CCA467D3460634792E903194CBBECED/Applicability/=Live/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=1CCA467D3460634792E903194CBBECED/Scope/=C3001E7C0DA78E4487072B7E050D86C5/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=1CCA467D3460634792E903194CBBECED/Scope/=C3001E7C0DA78E4487072B7E050D86C5/Type/@EntryValue">InCSharpFile</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=1CCA467D3460634792E903194CBBECED/Scope/=C3001E7C0DA78E4487072B7E050D86C5/CustomProperties/=minimumLanguageVersion/@EntryIndexedValue">2.0</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=1CCA467D3460634792E903194CBBECED/Field/=Test/@KeyIndexDefined">True</s:Boolean>
<s:Int64 x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=1CCA467D3460634792E903194CBBECED/Field/=Test/Order/@EntryValue">0</s:Int64></wpf:ResourceDictionary>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment