summaryrefslogtreecommitdiff
path: root/tools/MbUnit/VSSnippets/MbUnitVBSnippets/testexpectedexception.snippet
blob: caac89d5f1003b7012be6249ec56a130807de38c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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>