Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
- <CodeSnippet Format="1.0.0">
- <Header>
- <SnippetTypes>
- <SnippetType>Expansion</SnippetType>
- </SnippetTypes>
- <Title>Test Method</Title>
- <Shortcut>testm</Shortcut>
- <Description>Code snippet for a test method</Description>
- <Author>Microsoft Corporation</Author>
- </Header>
- <Snippet>
- <Imports>
- <Import>
- <Namespace>Microsoft.VisualStudio.TestTools.UnitTesting</Namespace>
- </Import>
- </Imports>
- <References>
- <Reference>
- <Assembly>Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll</Assembly>
- </Reference>
- </References>
- <Declarations>
- <Literal>
- <ID>methodName</ID>
- <ToolTip>Replace with the method name part of name of the test method</ToolTip>
- <Default>MyTestMethod</Default>
- </Literal>
- <Literal>
- <ID>Condition</ID>
- <ToolTip>Replace with the condition part of name of the test method</ToolTip>
- <Default>Condition</Default>
- </Literal>
- <Literal>
- <ID>ExpectedResult</ID>
- <ToolTip>Replace with the expected result part of name of the test method</ToolTip>
- <Default>MyTestMethod</Default>
- </Literal>
- <Literal Editable="false">
- <ID>TestMethod</ID>
- <Function>SimpleTypeName(global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethod)</Function>
- </Literal>
- </Declarations>
- <Code Language="csharp"><![CDATA[[$TestMethod$]
- public void $methodName$_$Condition$_$ExpectedResult$()
- {
- $end$
- }]]></Code>
- </Snippet>
- </CodeSnippet>
- </CodeSnippets>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement