summaryrefslogtreecommitdiff
path: root/tools/MbUnit/VSSnippets/MbUnitVBSnippets/testexpectedexception.snippet
diff options
context:
space:
mode:
Diffstat (limited to 'tools/MbUnit/VSSnippets/MbUnitVBSnippets/testexpectedexception.snippet')
-rw-r--r--tools/MbUnit/VSSnippets/MbUnitVBSnippets/testexpectedexception.snippet32
1 files changed, 32 insertions, 0 deletions
diff --git a/tools/MbUnit/VSSnippets/MbUnitVBSnippets/testexpectedexception.snippet b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/testexpectedexception.snippet
new file mode 100644
index 0000000..caac89d
--- /dev/null
+++ b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/testexpectedexception.snippet
@@ -0,0 +1,32 @@
+<?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 with and expected exception</Description>
+ <Shortcut>testexpectedexception</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>name</ID>
+ <ToolTip>TestName</ToolTip>
+ <Default>Test</Default>
+ </Literal>
+ <Literal>
+ <ID>type</ID>
+ <ToolTip>Expected Exception Type</ToolTip>
+ </Literal>
+ </Declarations>
+ <Code Language="VB"><![CDATA[ <Test(),ExpectedException(GetType($type$Exception))> _
+ Public Sub $name$()
+
+ End Sub
+]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets> \ No newline at end of file