summaryrefslogtreecommitdiff
path: root/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/testexpectedexception.snippet
blob: 4dbb7b8a1e1802eb0f52ede32a57654bb9ad60bc (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
33
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>