Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JuanjoFuchs/4693932 to your computer and use it in GitHub Desktop.
Save JuanjoFuchs/4693932 to your computer and use it in GitHub Desktop.
Resharper code template to create setup method. Just import the .DotSettings file into resharper templates explorer or paste the code in .cs into a new template.
[SetUp]
public void SetUp()
{
$END$
}
<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/=6F969D82676C6E4EAB872A29F8652DA0/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=6F969D82676C6E4EAB872A29F8652DA0/Shortcut/@EntryValue">setup</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=6F969D82676C6E4EAB872A29F8652DA0/Description/@EntryValue">Creates a SetUp method</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=6F969D82676C6E4EAB872A29F8652DA0/Text/@EntryValue">[SetUp]&#xD;
public void SetUp()&#xD;
{&#xD;
$END$&#xD;
}</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=6F969D82676C6E4EAB872A29F8652DA0/Reformat/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=6F969D82676C6E4EAB872A29F8652DA0/ShortenQualifiedReferences/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=6F969D82676C6E4EAB872A29F8652DA0/Categories/=NUnit/@EntryIndexedValue">NUnit</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=6F969D82676C6E4EAB872A29F8652DA0/Applicability/=Live/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=6F969D82676C6E4EAB872A29F8652DA0/Scope/=C3001E7C0DA78E4487072B7E050D86C5/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=6F969D82676C6E4EAB872A29F8652DA0/Scope/=C3001E7C0DA78E4487072B7E050D86C5/Type/@EntryValue">InCSharpFile</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=6F969D82676C6E4EAB872A29F8652DA0/Scope/=C3001E7C0DA78E4487072B7E050D86C5/CustomProperties/=minimumLanguageVersion/@EntryIndexedValue">2.0</s:String></wpf:ResourceDictionary>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment