blob: bc4694923ffcbe6edf1b13b49e053472af8da3dd (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
<?xml version="1.0"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>CombinatorialTest</Title>
<Author>MbUnit</Author>
<Description>Inserts a combinatorial test with 2 parameters and 2 factories</Description>
<HelpUrl>http://www.mertner.com/confluence/display/MbUnit/CombinatorialTestAttribute</HelpUrl>
<Shortcut>combinatorial</Shortcut>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>testName</ID>
<Default>Test</Default>
</Literal>
<Literal>
<ID>type1</ID>
</Literal>
<Literal>
<ID>type2</ID>
<Default>type2</Default>
</Literal>
<Literal>
<ID>arg1Name</ID>
<Default>arg1Name</Default>
</Literal>
<Literal>
<ID>arg2Name</ID>
<Default>arg2Name</Default>
</Literal>
</Declarations>
<Code Language="VB"><![CDATA[ <CombinatorialTest()> _
Public Sub $testName$( _
<UsingFactories("$type1$Factory")] ByVal $arg1Name$ As $type1$, _
<UsingFactories("$type2$Factory")] ByVal $arg2Name$ As $type2$)
End Sub
<Factory(GetType($type1$))> _
public IEnumerable $type1$Factory()
{
Dim values As $type1$() = New $type1$ { };
Return values
}
<Factory(GetType($type2$))> _
Public Function $type2$Factory() As IEnumerable
Dim values As $type2$() = New $type2$ { };
Return values
End Function]]></Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
|