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="VB"><![CDATA[ <CombinatorialTest()> _
34 Public Sub $testName$( _
35 <UsingFactories("$type1$Factory")] ByVal $arg1Name$ As $type1$, _
36 <UsingFactories("$type2$Factory")] ByVal $arg2Name$ As $type2$)
37
38 End Sub
39
40 <Factory(GetType($type1$))> _
41 public IEnumerable $type1$Factory()
42 {
43 Dim values As $type1$() = New $type1$ { };
44 Return values
45 }
46
47 <Factory(GetType($type2$))> _
48 Public Function $type2$Factory() As IEnumerable
49 Dim values As $type2$() = New $type2$ { };
50 Return values
51 End Function]]></Code>
52 </Snippet>
53 </CodeSnippet>
54</CodeSnippets>