Skip to content

Instantly share code, notes, and snippets.

@adalon
Created May 20, 2014 15:52
Show Gist options
  • Save adalon/8fcb24861080cc98168a to your computer and use it in GitHub Desktop.
Save adalon/8fcb24861080cc98168a to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8" ?>
<!--
Download to %userprofile%\Documents\Visual Studio [2010|2012|2013|vNext]\Code Snippets\Visual C#\My Code Snippets
Template for VS integration test methods
Press vstest[tab][tab] to get it.
-->
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>VS Integration Test</Title>
<Shortcut>vstest</Shortcut>
<Description>Create VS Integration test method</Description>
<Author>Adrian Alonso</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Imports>
<Import>
<Namespace>Microsoft.VisualStudio.TestTools.UnitTesting</Namespace>
</Import>
</Imports>
<Declarations>
<Literal>
<ID>action</ID>
<ToolTip>Action performed on the given context</ToolTip>
<Default>action</Default>
</Literal>
<Literal>
<ID>assert</ID>
<ToolTip>The consequence of the action</ToolTip>
<Default>assert</Default>
</Literal>
</Declarations>
<Code Language="csharp"><![CDATA[[HostType ("VS IDE")]
[TestMethod]
public void when_$action$_then_$assert$()
{
$end$
}]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment