main
 1<?xml version="1.0"?>
 2<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
 3  <CodeSnippet Format="1.0.0">
 4    <Header>
 5      <Title>TestFixture</Title>
 6      <Author>MbUnit</Author>
 7      <Description>Expansion snippet for TestFixture</Description>
 8      <Shortcut>testfixture</Shortcut>
 9      <SnippetTypes>
10        <SnippetType>Expansion</SnippetType>
11      </SnippetTypes>
12    </Header>
13    <Snippet>
14      <Declarations>
15        <Literal>
16          <ID>namespace</ID>
17          <ToolTip>Test namespace</ToolTip>
18        </Literal>
19        <Literal>
20          <ID>type</ID>
21          <ToolTip>Tested type</ToolTip>
22        </Literal>
23      </Declarations>
24      <Code Language="csharp"><![CDATA[using System;
25using MbUnit.Framework;
26
27namespace $namespace$
28{
29    /// <summary>
30    /// A <see cref="TestFixture"/> for the <see cref="$type$"/> class.
31    /// </summary>
32    [TestFixture]
33    [TestsOn(typeof($type$))]
34    public class $type$Test
35    {
36        #region Fields, SetUp and TearDown
37        private $type$ target = null;
38        
39        /// <summary>
40        /// Sets up the fixture
41        /// </summary>
42        [SetUp]
43        public void SetUp()
44        {
45            this.target = new $type$();
46        }
47        /// <summary>
48        /// Cleans up the fixture
49        /// </summary>
50        [TearDown]
51        public void TearDown()
52        {
53            IDisposable disposable = this.target as IDisposable;
54            if (disposable!=null)
55                disposable.Dispose();
56        }
57        #endregion
58    
59        #region Test cases
60        [Test]
61        public void Test()
62        {
63            $end$
64        }
65        #endregion    
66    }
67}
68	]]></Code>
69    </Snippet>
70  </CodeSnippet>
71</CodeSnippets>