mbunit2 2.4.2.355.20100801
Sign up to get free protection for your applications and to get access to all the features.
- data/docs/ASL - Apache Software Foundation License.txt +57 -0
- data/docs/MbUnit License.txt +14 -0
- data/docs/MbUnit.chm +0 -0
- data/docs/Release Notes.txt +7 -0
- data/docs/extras/CCNet/How to use MbUnit v2 with CruiseControl.Net.txt +88 -0
- data/docs/extras/CCNet/images/Category.png +0 -0
- data/docs/extras/CCNet/images/Fixture.png +0 -0
- data/docs/extras/CCNet/images/Populator.png +0 -0
- data/docs/extras/CCNet/images/Test.png +0 -0
- data/docs/extras/CCNet/xsl/MBUnitDetails.xsl +592 -0
- data/docs/extras/CCNet/xsl/MBUnitSummary.xsl +266 -0
- data/docs/extras/Snippets/AdjacencyGraph.cst +1703 -0
- data/docs/extras/Snippets/AssertWrapper.cst +181 -0
- data/docs/extras/Snippets/CrudPopulator.cst +377 -0
- data/docs/extras/Snippets/DatabasePopulator.cst +386 -0
- data/docs/extras/Snippets/DatabasePopulatorCrudTest.cst +177 -0
- data/docs/extras/Snippets/Exception.cst +94 -0
- data/docs/extras/Snippets/GrammarPopulator.cst +258 -0
- data/docs/extras/Snippets/MockObject.cst +296 -0
- data/docs/extras/Snippets/RapTierCrudPopulator.cst +444 -0
- data/docs/extras/Snippets/SimpleFixture.cst +91 -0
- data/docs/extras/Snippets/SqlppCrudPopulator.cst +443 -0
- data/docs/extras/Snippets/TestFixture.cst +469 -0
- data/docs/extras/Snippets/autorunner.snippet +45 -0
- data/docs/extras/Snippets/combinatorialtest.snippet +54 -0
- data/docs/extras/Snippets/datafixture.snippet +61 -0
- data/docs/extras/Snippets/model.snippet +95 -0
- data/docs/extras/Snippets/msbuild.snippet +40 -0
- data/docs/extras/Snippets/nant.snippet +34 -0
- data/docs/extras/Snippets/perfcounterassert.cst +173 -0
- data/docs/extras/Snippets/processtestfixture.snippet +75 -0
- data/docs/extras/Snippets/rowtest.snippet +113 -0
- data/docs/extras/Snippets/state.snippet +27 -0
- data/docs/extras/Snippets/submodel.snippet +32 -0
- data/docs/extras/Snippets/test.snippet +28 -0
- data/docs/extras/Snippets/testexpectedexception.snippet +32 -0
- data/docs/extras/Snippets/testfixture.snippet +68 -0
- data/docs/extras/Snippets/testsuitefixture.snippet +48 -0
- data/docs/extras/Snippets/typefixture.snippet +74 -0
- data/docs/extras/Snippets/typefixturewithproviderfactory.snippet +77 -0
- data/docs/extras/Snippets/usingmbunit.snippet +19 -0
- data/docs/extras/Templates/VS2005/ItemTemplates/CSharp/Test/MbUnit2.TestFixtureTemplate.CSharp.zip +0 -0
- data/docs/extras/Templates/VS2005/ItemTemplates/VisualBasic/Test/MbUnit2.TestFixtureTemplate.VisualBasic.zip +0 -0
- data/docs/extras/Templates/VS2005/ProjectTemplates/CSharp/Test/MbUnit2.TestProjectTemplate.CSharp.zip +0 -0
- data/docs/extras/Templates/VS2005/ProjectTemplates/VisualBasic/Test/MbUnit2.TestProjectTemplate.VisualBasic.zip +0 -0
- data/docs/extras/Templates/VS2008/ItemTemplates/CSharp/Test/MbUnit2.TestFixtureTemplate.CSharp.zip +0 -0
- data/docs/extras/Templates/VS2008/ItemTemplates/VisualBasic/Test/MbUnit2.TestFixtureTemplate.VisualBasic.zip +0 -0
- data/docs/extras/Templates/VS2008/ProjectTemplates/CSharp/Test/MbUnit2.MvcWebApplicationTestProjectTemplate.CSharp.zip +0 -0
- data/docs/extras/Templates/VS2008/ProjectTemplates/CSharp/Test/MbUnit2.TestProjectTemplate.CSharp.zip +0 -0
- data/docs/extras/Templates/VS2008/ProjectTemplates/VisualBasic/Test/MbUnit2.MvcWebApplicationTestProjectTemplate.VisualBasic.zip +0 -0
- data/docs/extras/Templates/VS2008/ProjectTemplates/VisualBasic/Test/MbUnit2.TestProjectTemplate.VisualBasic.zip +0 -0
- data/lib/MbUnit License.txt +14 -0
- data/lib/MbUnit.AddIn.dll +0 -0
- data/lib/MbUnit.Cons.exe +0 -0
- data/lib/MbUnit.Cons.exe.config +12 -0
- data/lib/MbUnit.Framework.2.0.dll +0 -0
- data/lib/MbUnit.Framework.2.0.pdb +0 -0
- data/lib/MbUnit.Framework.2.0.xml +278 -0
- data/lib/MbUnit.Framework.dll +0 -0
- data/lib/MbUnit.Framework.pdb +0 -0
- data/lib/MbUnit.Framework.xml +6929 -0
- data/lib/MbUnit.GUI.exe +0 -0
- data/lib/MbUnit.GUI.exe.config +14 -0
- data/lib/MbUnit.MSBuild.Tasks.dll +0 -0
- data/lib/MbUnit.Tasks.dll +0 -0
- data/lib/NGraphviz.Helpers.dll +0 -0
- data/lib/NGraphviz.Layout.dll +0 -0
- data/lib/NGraphviz.dll +0 -0
- data/lib/QuickGraph.Algorithms.Graphviz.dll +0 -0
- data/lib/QuickGraph.Algorithms.dll +0 -0
- data/lib/QuickGraph.Algorithms.pdb +0 -0
- data/lib/QuickGraph.Algorithms.xml +2818 -0
- data/lib/QuickGraph.dll +0 -0
- data/lib/QuickGraph.pdb +0 -0
- data/lib/QuickGraph.xml +3126 -0
- data/lib/Refly.dll +0 -0
- data/lib/Refly.pdb +0 -0
- data/lib/Refly.xml +1327 -0
- data/lib/TestFu.dll +0 -0
- data/lib/TestFu.pdb +0 -0
- data/lib/TestFu.xml +1932 -0
- data/lib/XsdTidy.exe +0 -0
- metadata +163 -0
@@ -0,0 +1,75 @@
|
|
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>ProcessTestFixture</Title>
|
6
|
+
<Author>MbUnit</Author>
|
7
|
+
<HelpUrl>http://www.mertner.com/confluence/display/MbUnit/ProcessTestFixture</HelpUrl>
|
8
|
+
<Shortcut>processfixture</Shortcut>
|
9
|
+
</Header>
|
10
|
+
<Snippet>
|
11
|
+
<Declarations>
|
12
|
+
<Literal>
|
13
|
+
<ID>namespace</ID>
|
14
|
+
<Default>MbUnitTests</Default>
|
15
|
+
</Literal>
|
16
|
+
<Literal>
|
17
|
+
<ID>testName1</ID>
|
18
|
+
<Default>Test1</Default>
|
19
|
+
</Literal>
|
20
|
+
<Literal>
|
21
|
+
<ID>testName2</ID>
|
22
|
+
<Default>Test2</Default>
|
23
|
+
</Literal>
|
24
|
+
<Literal>
|
25
|
+
<ID>testName3</ID>
|
26
|
+
<Default>Test3</Default>
|
27
|
+
</Literal>
|
28
|
+
<Literal>
|
29
|
+
<ID>testName4</ID>
|
30
|
+
<Default>Test4</Default>
|
31
|
+
</Literal>
|
32
|
+
<Literal>
|
33
|
+
<ID>type</ID>
|
34
|
+
<ToolTip>The class being tested</ToolTip>
|
35
|
+
<Default>type</Default>
|
36
|
+
</Literal>
|
37
|
+
</Declarations>
|
38
|
+
<Code Language="VB"><![CDATA[Imports System
|
39
|
+
Imports MbUnit.Framework
|
40
|
+
|
41
|
+
Namespace $namespace$
|
42
|
+
|
43
|
+
<ProcessTestFixture()> _
|
44
|
+
Public Class $type$Test
|
45
|
+
|
46
|
+
<Test(), _
|
47
|
+
TestSequence(1)> _
|
48
|
+
Public Sub $testName1$()
|
49
|
+
|
50
|
+
End Sub
|
51
|
+
|
52
|
+
<Test(), _
|
53
|
+
TestSequence(2)> _
|
54
|
+
Public Sub $testName2$()
|
55
|
+
|
56
|
+
End Sub
|
57
|
+
|
58
|
+
<Test(), _
|
59
|
+
TestSequence(3)> _
|
60
|
+
Public Sub $testName3$()
|
61
|
+
|
62
|
+
End Sub
|
63
|
+
|
64
|
+
<Test(), _
|
65
|
+
TestSequence(4)> _
|
66
|
+
Public Sub $testName4$()
|
67
|
+
|
68
|
+
End Sub
|
69
|
+
|
70
|
+
End Class
|
71
|
+
|
72
|
+
End Namespace]]></Code>
|
73
|
+
</Snippet>
|
74
|
+
</CodeSnippet>
|
75
|
+
</CodeSnippets>
|
@@ -0,0 +1,113 @@
|
|
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>RowTest</Title>
|
6
|
+
<Author>MbUnit</Author>
|
7
|
+
<Description>Inserts a row test with 5 rows and 3 parameters.</Description>
|
8
|
+
<HelpUrl>http://www.mertner.com/confluence/display/MbUnit/RowTestAttribute</HelpUrl>
|
9
|
+
<Shortcut>rowtest</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
|
+
<Default>type1</Default>
|
20
|
+
</Literal>
|
21
|
+
<Literal>
|
22
|
+
<ID>arg1Name</ID>
|
23
|
+
<Default>arg1Name</Default>
|
24
|
+
</Literal>
|
25
|
+
<Literal>
|
26
|
+
<ID>type2</ID>
|
27
|
+
<Default>type2</Default>
|
28
|
+
</Literal>
|
29
|
+
<Literal>
|
30
|
+
<ID>arg2Name</ID>
|
31
|
+
<Default>arg2Name</Default>
|
32
|
+
</Literal>
|
33
|
+
<Literal>
|
34
|
+
<ID>type3</ID>
|
35
|
+
<Default>type3</Default>
|
36
|
+
</Literal>
|
37
|
+
<Literal>
|
38
|
+
<ID>arg3Name</ID>
|
39
|
+
<Default>arg3Name</Default>
|
40
|
+
</Literal>
|
41
|
+
<Literal>
|
42
|
+
<ID>value1</ID>
|
43
|
+
<Default>value1</Default>
|
44
|
+
</Literal>
|
45
|
+
<Literal>
|
46
|
+
<ID>value2</ID>
|
47
|
+
<Default>value2</Default>
|
48
|
+
</Literal>
|
49
|
+
<Literal>
|
50
|
+
<ID>value3</ID>
|
51
|
+
<Default>value3</Default>
|
52
|
+
</Literal>
|
53
|
+
<Literal>
|
54
|
+
<ID>value4</ID>
|
55
|
+
<Default>value4</Default>
|
56
|
+
</Literal>
|
57
|
+
<Literal>
|
58
|
+
<ID>value5</ID>
|
59
|
+
<Default>value5</Default>
|
60
|
+
</Literal>
|
61
|
+
<Literal>
|
62
|
+
<ID>value6</ID>
|
63
|
+
<Default>value6</Default>
|
64
|
+
</Literal>
|
65
|
+
<Literal>
|
66
|
+
<ID>value7</ID>
|
67
|
+
<Default>value7</Default>
|
68
|
+
</Literal>
|
69
|
+
<Literal>
|
70
|
+
<ID>value8</ID>
|
71
|
+
<Default>value8</Default>
|
72
|
+
</Literal>
|
73
|
+
<Literal>
|
74
|
+
<ID>value9</ID>
|
75
|
+
<Default>value9</Default>
|
76
|
+
</Literal>
|
77
|
+
<Literal>
|
78
|
+
<ID>value10</ID>
|
79
|
+
<Default>value10</Default>
|
80
|
+
</Literal>
|
81
|
+
<Literal>
|
82
|
+
<ID>value11</ID>
|
83
|
+
<Default>value11</Default>
|
84
|
+
</Literal>
|
85
|
+
<Literal>
|
86
|
+
<ID>value12</ID>
|
87
|
+
<Default>value12</Default>
|
88
|
+
</Literal>
|
89
|
+
<Literal>
|
90
|
+
<ID>value13</ID>
|
91
|
+
<Default>value13</Default>
|
92
|
+
</Literal>
|
93
|
+
<Literal>
|
94
|
+
<ID>value14</ID>
|
95
|
+
<Default>value14</Default>
|
96
|
+
</Literal>
|
97
|
+
<Literal>
|
98
|
+
<ID>value15</ID>
|
99
|
+
<Default>value15</Default>
|
100
|
+
</Literal>
|
101
|
+
</Declarations>
|
102
|
+
<Code Language="VB"><![CDATA[ <RowTest(), _
|
103
|
+
Row($value1$,$value2$,$value3$), _
|
104
|
+
Row($value4$,$value5$,$value6$), _
|
105
|
+
Row($value7$,$value8$,$value9$), _
|
106
|
+
Row($value10$,$value11$,$value12$), _
|
107
|
+
Row($value13$,$value14$,$value15$)> _
|
108
|
+
Public Sub $testName$(ByVal $arg1Name$ As $type1$, ByVal $arg2Name$ As $type2$, ByVal $arg3Name$ As $type3$)
|
109
|
+
|
110
|
+
End Sub]]></Code>
|
111
|
+
</Snippet>
|
112
|
+
</CodeSnippet>
|
113
|
+
</CodeSnippets>
|
@@ -0,0 +1,27 @@
|
|
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>IState wrapper</Title>
|
6
|
+
<Author>MbUnit</Author>
|
7
|
+
<Description>Expansion snippet for a IState wrapper</Description>
|
8
|
+
<Shortcut>state</Shortcut>
|
9
|
+
<SnippetTypes>
|
10
|
+
<SnippetType>Expansion</SnippetType>
|
11
|
+
</SnippetTypes>
|
12
|
+
</Header>
|
13
|
+
<Snippet>
|
14
|
+
<Declarations>
|
15
|
+
<Literal>
|
16
|
+
<ID>name</ID>
|
17
|
+
<ToolTip>State Name</ToolTip>
|
18
|
+
</Literal>
|
19
|
+
</Declarations>
|
20
|
+
<Code Language="VB"><![CDATA[ Public Property $name$State as IState
|
21
|
+
Get
|
22
|
+
Return Me.States("$name$")
|
23
|
+
End Get
|
24
|
+
End Property ]]></Code>
|
25
|
+
</Snippet>
|
26
|
+
</CodeSnippet>
|
27
|
+
</CodeSnippets>
|
@@ -0,0 +1,32 @@
|
|
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>ISubModel wrapper</Title>
|
6
|
+
<Author>MbUnit</Author>
|
7
|
+
<Description>Expansion snippet for a ISubModel wrapper</Description>
|
8
|
+
<Shortcut>submodel</Shortcut>
|
9
|
+
<SnippetTypes>
|
10
|
+
<SnippetType>Expansion</SnippetType>
|
11
|
+
</SnippetTypes>
|
12
|
+
</Header>
|
13
|
+
<Snippet>
|
14
|
+
<Declarations>
|
15
|
+
<Literal>
|
16
|
+
<ID>model</ID>
|
17
|
+
<ToolTip>Model type</ToolTip>
|
18
|
+
</Literal>
|
19
|
+
<Literal>
|
20
|
+
<ID>name</ID>
|
21
|
+
<ToolTip>SubModel Name</ToolTip>
|
22
|
+
</Literal>
|
23
|
+
</Declarations>
|
24
|
+
<Code Language="VB"><![CDATA[ Public ReadOnly Property $name$Model As $model$
|
25
|
+
Get
|
26
|
+
Return DirectCast(Me.SubModels("$name$").Model, $model$)
|
27
|
+
End Get
|
28
|
+
End Property
|
29
|
+
]]></Code>
|
30
|
+
</Snippet>
|
31
|
+
</CodeSnippet>
|
32
|
+
</CodeSnippets>
|
@@ -0,0 +1,28 @@
|
|
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>Test Method</Title>
|
6
|
+
<Author>MbUnit</Author>
|
7
|
+
<Description>Expansion snippet for a Test method</Description>
|
8
|
+
<Shortcut>test</Shortcut>
|
9
|
+
<SnippetTypes>
|
10
|
+
<SnippetType>Expansion</SnippetType>
|
11
|
+
</SnippetTypes>
|
12
|
+
</Header>
|
13
|
+
<Snippet>
|
14
|
+
<Declarations>
|
15
|
+
<Literal>
|
16
|
+
<ID>name</ID>
|
17
|
+
<ToolTip>TestName</ToolTip>
|
18
|
+
<Default>Test</Default>
|
19
|
+
</Literal>
|
20
|
+
</Declarations>
|
21
|
+
<Code Language="VB"><![CDATA[ <Test()> _
|
22
|
+
Public Sub $name$()
|
23
|
+
|
24
|
+
End Sub
|
25
|
+
]]></Code>
|
26
|
+
</Snippet>
|
27
|
+
</CodeSnippet>
|
28
|
+
</CodeSnippets>
|
@@ -0,0 +1,32 @@
|
|
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>Test Method with ExpectedException</Title>
|
6
|
+
<Author>MbUnit</Author>
|
7
|
+
<Description>Expansion snippet for a Test method with and expected exception</Description>
|
8
|
+
<Shortcut>testexpectedexception</Shortcut>
|
9
|
+
<SnippetTypes>
|
10
|
+
<SnippetType>Expansion</SnippetType>
|
11
|
+
</SnippetTypes>
|
12
|
+
</Header>
|
13
|
+
<Snippet>
|
14
|
+
<Declarations>
|
15
|
+
<Literal>
|
16
|
+
<ID>name</ID>
|
17
|
+
<ToolTip>TestName</ToolTip>
|
18
|
+
<Default>Test</Default>
|
19
|
+
</Literal>
|
20
|
+
<Literal>
|
21
|
+
<ID>type</ID>
|
22
|
+
<ToolTip>Expected Exception Type</ToolTip>
|
23
|
+
</Literal>
|
24
|
+
</Declarations>
|
25
|
+
<Code Language="VB"><![CDATA[ <Test(),ExpectedException(GetType($type$Exception))> _
|
26
|
+
Public Sub $name$()
|
27
|
+
|
28
|
+
End Sub
|
29
|
+
]]></Code>
|
30
|
+
</Snippet>
|
31
|
+
</CodeSnippet>
|
32
|
+
</CodeSnippets>
|
@@ -0,0 +1,68 @@
|
|
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
|
+
<Default>MbUnitTests</Default>
|
19
|
+
</Literal>
|
20
|
+
<Literal>
|
21
|
+
<ID>type</ID>
|
22
|
+
<ToolTip>Tested type</ToolTip>
|
23
|
+
</Literal>
|
24
|
+
</Declarations>
|
25
|
+
<Code Language="VB"><![CDATA[Imports System
|
26
|
+
Imports MbUnit.Framework
|
27
|
+
|
28
|
+
Namespace $namespace$
|
29
|
+
|
30
|
+
''' <summary>
|
31
|
+
''' A TestFixture for the $type$ class.
|
32
|
+
''' </summary>
|
33
|
+
<TestFixture(), _
|
34
|
+
TestsOn(GetType($type$))> _
|
35
|
+
Public Class $type$Test
|
36
|
+
#Region "Fields, SetUp and TearDown"
|
37
|
+
Private target As $type$ = Nothing
|
38
|
+
|
39
|
+
''' <summary>
|
40
|
+
''' Sets up the fixture
|
41
|
+
''' </summary>
|
42
|
+
<SetUp()> _
|
43
|
+
Public Sub SetUp()
|
44
|
+
Mew.target = New $type$()
|
45
|
+
End Sub
|
46
|
+
''' <summary>
|
47
|
+
''' Cleans up the fixture
|
48
|
+
'' </summary>
|
49
|
+
<TearDown()> _
|
50
|
+
public void TearDown()
|
51
|
+
Dim disposable As IDisposable = TryCast(this.target, IDisposable)
|
52
|
+
If disposable IsNot Nothing Then
|
53
|
+
disposable.Dispose()
|
54
|
+
End If
|
55
|
+
End Sub
|
56
|
+
#End Region
|
57
|
+
|
58
|
+
#Region "Test cases"
|
59
|
+
<Test()> _
|
60
|
+
Public Sub Test()
|
61
|
+
|
62
|
+
End Sub
|
63
|
+
#End Region
|
64
|
+
End Class
|
65
|
+
End Namespace]]></Code>
|
66
|
+
</Snippet>
|
67
|
+
</CodeSnippet>
|
68
|
+
</CodeSnippets>
|
@@ -0,0 +1,48 @@
|
|
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>TestSuiteFixture</Title>
|
6
|
+
<Author>MbUnit</Author>
|
7
|
+
<Description>Expansion snippet for TestSuiteFixture</Description>
|
8
|
+
<Shortcut>testsuitefixture</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
|
+
<Default>MbUnitTests</Default>
|
19
|
+
</Literal>
|
20
|
+
<Literal>
|
21
|
+
<ID>name</ID>
|
22
|
+
<ToolTip>Fixture name</ToolTip>
|
23
|
+
<Default>My</Default>
|
24
|
+
</Literal>
|
25
|
+
<Literal>
|
26
|
+
<ID>suiteName</ID>
|
27
|
+
<ToolTip>Suite name</ToolTip>
|
28
|
+
<Default>Suite</Default>
|
29
|
+
</Literal>
|
30
|
+
</Declarations>
|
31
|
+
<Code Language="VB"><![CDATA[Imports System
|
32
|
+
Imports MbUnit.Framework
|
33
|
+
|
34
|
+
Namespace $namespace$
|
35
|
+
<TestSuiteFixture()> _
|
36
|
+
Public Class $name$Test
|
37
|
+
<TestSuite()> _
|
38
|
+
Public Function $suiteName$() As TestSuite
|
39
|
+
Dim suite As TestSuite = New TestSuite("$suiteName$")
|
40
|
+
|
41
|
+
Return suite
|
42
|
+
End Function
|
43
|
+
End Class
|
44
|
+
End Namespace
|
45
|
+
]]></Code>
|
46
|
+
</Snippet>
|
47
|
+
</CodeSnippet>
|
48
|
+
</CodeSnippets>
|
@@ -0,0 +1,74 @@
|
|
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>TypeFixture</Title>
|
6
|
+
<Author>MbUnit</Author>
|
7
|
+
<Description>Expansion snippet for TypeFixture</Description>
|
8
|
+
<HelpUrl>http://www.mertner.com/confluence/display/MbUnit/TypeFixture</HelpUrl>
|
9
|
+
<Shortcut>typefixture</Shortcut>
|
10
|
+
<SnippetTypes>
|
11
|
+
<SnippetType>Expansion</SnippetType>
|
12
|
+
</SnippetTypes>
|
13
|
+
</Header>
|
14
|
+
<Snippet>
|
15
|
+
<Declarations>
|
16
|
+
<Literal>
|
17
|
+
<ID>namespace</ID>
|
18
|
+
<ToolTip>Test namespace</ToolTip>
|
19
|
+
<Default>MbUnitTests</Default>
|
20
|
+
</Literal>
|
21
|
+
<Literal>
|
22
|
+
<ID>type</ID>
|
23
|
+
<ToolTip>Tested type</ToolTip>
|
24
|
+
</Literal>
|
25
|
+
<Literal>
|
26
|
+
<ID>instanceName</ID>
|
27
|
+
<Default>instanceName</Default>
|
28
|
+
</Literal>
|
29
|
+
</Declarations>
|
30
|
+
<Code Language="VB"><![CDATA[Imports System
|
31
|
+
Imports MbUnit.Core.Framework
|
32
|
+
Imports MbUnit.Framework
|
33
|
+
|
34
|
+
Namespace $namespace$
|
35
|
+
''' <summary>
|
36
|
+
''' A TypeFixture for the $type$ class.
|
37
|
+
''' </summary>
|
38
|
+
<TypeFixture(GetType($type$)), _
|
39
|
+
TestsOn(GetType($type$))> _
|
40
|
+
Public Class $type$Test
|
41
|
+
#Region "SetUp and TearDown"
|
42
|
+
''' <summary>
|
43
|
+
''' Initializes the fixture
|
44
|
+
''' </summary>
|
45
|
+
<SetUp()> _
|
46
|
+
Public Sub SetUp(ByVal value As $type$)
|
47
|
+
End Sub
|
48
|
+
''' <summary>
|
49
|
+
''' Cleans up the fixture
|
50
|
+
''' </summary>
|
51
|
+
<TearDown()> _
|
52
|
+
Public Sub TearDown(ByVal value As $type$)
|
53
|
+
End Sub
|
54
|
+
#End Region
|
55
|
+
|
56
|
+
#Region "Test cases"
|
57
|
+
<Test()> _
|
58
|
+
Public Sub Test(ByVal value As $type$)
|
59
|
+
End Sub
|
60
|
+
#End Region
|
61
|
+
|
62
|
+
#Region "Providers"
|
63
|
+
<Provider(typeof($type$))> _
|
64
|
+
Public Function Provider$type$() As $type$
|
65
|
+
Dim $instanceName$ As $type$ = New $type$()
|
66
|
+
Return $instanceName$
|
67
|
+
End Function
|
68
|
+
#End Region
|
69
|
+
End Class
|
70
|
+
End Namespace
|
71
|
+
]]></Code>
|
72
|
+
</Snippet>
|
73
|
+
</CodeSnippet>
|
74
|
+
</CodeSnippets>
|