master
 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>CombinatorialTest</Title>
 6      <Author>MbUnit</Author>
 7      <Description>Inserts a combinatorial test with 2 parameters and 2 factories</Description>
 8      <HelpUrl>http://www.mertner.com/confluence/display/MbUnit/CombinatorialTestAttribute</HelpUrl>
 9      <Shortcut>combinatorial</Shortcut>
10    </Header>
11    <Snippet>
12      <Declarations>
13        <Literal>
14          <ID>testName</ID>
15          <Default>Test</Default>
16        </Literal>
17        <Literal>
18          <ID>type1</ID>
19        </Literal>
20        <Literal>
21          <ID>type2</ID>
22          <Default>type2</Default>
23        </Literal>
24        <Literal>
25          <ID>arg1Name</ID>
26          <Default>arg1Name</Default>
27        </Literal>
28        <Literal>
29          <ID>arg2Name</ID>
30          <Default>arg2Name</Default>
31        </Literal>
32      </Declarations>
33      <Code Language="CSharp"><![CDATA[        [CombinatorialTest]
34        public void $testName$(
35			[UsingFactories("$type1$Factory")] $type1$ $arg1Name$,
36			[UsingFactories("$type2$Factory")] $type2$ $arg2Name$)
37        {
38
39        }
40
41        [Factory(typeof($type1$))]
42        public IEnumerable $type1$Factory()
43        {
44            $type1$[] values = new $type1$[] { };
45            return values;
46        }
47
48        [Factory(typeof($type2$))]
49        public IEnumerable $type2$Factory()
50        {
51            $type2$[] values = new $type2$[] { };
52            return values;
53        }]]></Code>
54    </Snippet>
55  </CodeSnippet>
56</CodeSnippets>