summaryrefslogtreecommitdiff
path: root/tools/mbunit/bin/VSSnippets/MbUnitVBSnippets/testexpectedexception.snippet
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2007-11-02 17:03:42 -0600
committermo khan <mo@mokhan.ca>2007-11-02 17:03:42 -0600
commit36ffa9f174c831146ca5630a41b75c9d213f3db6 (patch)
tree3ba71964656b385995bb9557c87a05b131348ddf /tools/mbunit/bin/VSSnippets/MbUnitVBSnippets/testexpectedexception.snippet
import from svntrunkmain
Diffstat (limited to 'tools/mbunit/bin/VSSnippets/MbUnitVBSnippets/testexpectedexception.snippet')
-rw-r--r--tools/mbunit/bin/VSSnippets/MbUnitVBSnippets/testexpectedexception.snippet32
1 files changed, 32 insertions, 0 deletions
diff --git a/tools/mbunit/bin/VSSnippets/MbUnitVBSnippets/testexpectedexception.snippet b/tools/mbunit/bin/VSSnippets/MbUnitVBSnippets/testexpectedexception.snippet
new file mode 100644
index 0000000..caac89d
--- /dev/null
+++ b/tools/mbunit/bin/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