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>AutoRunner</Title>
 6      <Author>MbUnit</Author>
 7      <Description>Expansion snippet for a AutorRunner main.</Description>
 8      <Shortcut>autorunner</Shortcut>
 9      <SnippetTypes>
10        <SnippetType>Expansion</SnippetType>
11      </SnippetTypes>
12    </Header>
13    <Snippet>
14      <Declarations>
15        <Literal>
16          <ID>name</ID>
17          <ToolTip>Main class name</ToolTip>
18          <Default>Program</Default>
19        </Literal>
20      </Declarations>
21      <Code Language="CSharp"><![CDATA[using System;
22
23namespace MbUnit.Tests
24{
25    using MbUnit.Core;
26    using MbUnit.Core.Filters;
27
28    static class $name$
29    {
30        public static void Main(string[] args)
31        {
32            using (AutoRunner auto = new AutoRunner())
33            {
34                // Note: uncomment if you want to execute only the fixtures
35                // that are tagged with [CurrentFixture] attribute.
36                //
37                //  auto.Domain.Filter = FixtureFilters.Current;
38                auto.Run();
39                auto.ReportToHtml();
40            }
41        }
42    }
43}
44
45	]]></Code>
46    </Snippet>
47  </CodeSnippet>
48</CodeSnippets>