summaryrefslogtreecommitdiff
path: root/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/testexpectedexception.snippet
diff options
context:
space:
mode:
Diffstat (limited to 'tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/testexpectedexception.snippet')
-rw-r--r--tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/testexpectedexception.snippet34
1 files changed, 34 insertions, 0 deletions
diff --git a/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/testexpectedexception.snippet b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/testexpectedexception.snippet
new file mode 100644
index 0000000..4dbb7b8
--- /dev/null
+++ b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/testexpectedexception.snippet
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>Test Method with ExpectedException</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for a Test method</Description>
+ <HelpUrl>http://www.mertner.com/confluence/display/MbUnit/ExpectedExceptionAttribute</HelpUrl>
+ <Shortcut>testexpectedexception</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>name</ID>
+ <ToolTip>TestName</ToolTip>
+ </Literal>
+ <Literal>
+ <ID>type</ID>
+ <ToolTip>Expected Exception Type</ToolTip>
+ </Literal>
+ </Declarations>
+ <Code Language="csharp"><![CDATA[ [Test]
+ [ExpectedException(typeof($type$Exception))]
+ public void $name$()
+ {
+
+ }
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets> \ No newline at end of file