diff options
Diffstat (limited to 'tools/MbUnit')
54 files changed, 1814 insertions, 0 deletions
diff --git a/tools/MbUnit/MbUnit.AddIn.dll b/tools/MbUnit/MbUnit.AddIn.dll Binary files differnew file mode 100644 index 0000000..35464b9 --- /dev/null +++ b/tools/MbUnit/MbUnit.AddIn.dll diff --git a/tools/MbUnit/MbUnit.Cons.exe b/tools/MbUnit/MbUnit.Cons.exe Binary files differnew file mode 100644 index 0000000..ff5913a --- /dev/null +++ b/tools/MbUnit/MbUnit.Cons.exe diff --git a/tools/MbUnit/MbUnit.Cons.exe.config b/tools/MbUnit/MbUnit.Cons.exe.config new file mode 100644 index 0000000..7fd5edb --- /dev/null +++ b/tools/MbUnit/MbUnit.Cons.exe.config @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <runtime>
+ <!-- Don't kill application on first uncaught exception. -->
+ <legacyUnhandledExceptionPolicy enabled="1" />
+ </runtime>
+
+ <startup>
+ <supportedRuntime version="v2.0.50727" />
+ <supportedRuntime version="v1.1.4322"/>
+ </startup>
+</configuration>
diff --git a/tools/MbUnit/MbUnit.Framework.2.0.dll b/tools/MbUnit/MbUnit.Framework.2.0.dll Binary files differnew file mode 100644 index 0000000..ec1e6d7 --- /dev/null +++ b/tools/MbUnit/MbUnit.Framework.2.0.dll diff --git a/tools/MbUnit/MbUnit.Framework.dll b/tools/MbUnit/MbUnit.Framework.dll Binary files differnew file mode 100644 index 0000000..18108b9 --- /dev/null +++ b/tools/MbUnit/MbUnit.Framework.dll diff --git a/tools/MbUnit/MbUnit.GUI.exe b/tools/MbUnit/MbUnit.GUI.exe Binary files differnew file mode 100644 index 0000000..52b27d0 --- /dev/null +++ b/tools/MbUnit/MbUnit.GUI.exe diff --git a/tools/MbUnit/MbUnit.GUI.exe.config b/tools/MbUnit/MbUnit.GUI.exe.config new file mode 100644 index 0000000..46bf22b --- /dev/null +++ b/tools/MbUnit/MbUnit.GUI.exe.config @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <runtime>
+ <!-- Don't kill application on first uncaught exception. -->
+ <legacyUnhandledExceptionPolicy enabled="1" />
+ </runtime>
+ <startup>
+ <supportedRuntime version="v2.0.50727" />
+ <supportedRuntime version="v1.1.4322"/>
+ </startup>
+ <appSettings>
+ <add key="restorePreviousState" value="true" />
+ </appSettings>
+</configuration>
\ No newline at end of file diff --git a/tools/MbUnit/MbUnit.MSBuild.Tasks.dll b/tools/MbUnit/MbUnit.MSBuild.Tasks.dll Binary files differnew file mode 100644 index 0000000..2de3b3f --- /dev/null +++ b/tools/MbUnit/MbUnit.MSBuild.Tasks.dll diff --git a/tools/MbUnit/MbUnit.Tasks.dll b/tools/MbUnit/MbUnit.Tasks.dll Binary files differnew file mode 100644 index 0000000..47fab28 --- /dev/null +++ b/tools/MbUnit/MbUnit.Tasks.dll diff --git a/tools/MbUnit/NAnt.Core.dll b/tools/MbUnit/NAnt.Core.dll Binary files differnew file mode 100644 index 0000000..77489e3 --- /dev/null +++ b/tools/MbUnit/NAnt.Core.dll diff --git a/tools/MbUnit/NGraphviz.Helpers.dll b/tools/MbUnit/NGraphviz.Helpers.dll Binary files differnew file mode 100644 index 0000000..a84595f --- /dev/null +++ b/tools/MbUnit/NGraphviz.Helpers.dll diff --git a/tools/MbUnit/NGraphviz.Layout.dll b/tools/MbUnit/NGraphviz.Layout.dll Binary files differnew file mode 100644 index 0000000..291597c --- /dev/null +++ b/tools/MbUnit/NGraphviz.Layout.dll diff --git a/tools/MbUnit/NGraphviz.dll b/tools/MbUnit/NGraphviz.dll Binary files differnew file mode 100644 index 0000000..53b9fce --- /dev/null +++ b/tools/MbUnit/NGraphviz.dll diff --git a/tools/MbUnit/QuickGraph.Algorithms.Graphviz.dll b/tools/MbUnit/QuickGraph.Algorithms.Graphviz.dll Binary files differnew file mode 100644 index 0000000..2addea0 --- /dev/null +++ b/tools/MbUnit/QuickGraph.Algorithms.Graphviz.dll diff --git a/tools/MbUnit/QuickGraph.Algorithms.dll b/tools/MbUnit/QuickGraph.Algorithms.dll Binary files differnew file mode 100644 index 0000000..b70672e --- /dev/null +++ b/tools/MbUnit/QuickGraph.Algorithms.dll diff --git a/tools/MbUnit/QuickGraph.dll b/tools/MbUnit/QuickGraph.dll Binary files differnew file mode 100644 index 0000000..5f7dbbf --- /dev/null +++ b/tools/MbUnit/QuickGraph.dll diff --git a/tools/MbUnit/Refly.dll b/tools/MbUnit/Refly.dll Binary files differnew file mode 100644 index 0000000..a89da96 --- /dev/null +++ b/tools/MbUnit/Refly.dll diff --git a/tools/MbUnit/TestDriven.Framework.dll b/tools/MbUnit/TestDriven.Framework.dll Binary files differnew file mode 100644 index 0000000..1498507 --- /dev/null +++ b/tools/MbUnit/TestDriven.Framework.dll diff --git a/tools/MbUnit/TestFu.dll b/tools/MbUnit/TestFu.dll Binary files differnew file mode 100644 index 0000000..571f2b5 --- /dev/null +++ b/tools/MbUnit/TestFu.dll diff --git a/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/autorunner.snippet b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/autorunner.snippet new file mode 100644 index 0000000..4cbfc99 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/autorunner.snippet @@ -0,0 +1,48 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>AutoRunner</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for a AutorRunner main.</Description>
+ <Shortcut>autorunner</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>name</ID>
+ <ToolTip>Main class name</ToolTip>
+ <Default>Program</Default>
+ </Literal>
+ </Declarations>
+ <Code Language="CSharp"><![CDATA[using System;
+
+namespace MbUnit.Tests
+{
+ using MbUnit.Core;
+ using MbUnit.Core.Filters;
+
+ static class $name$
+ {
+ public static void Main(string[] args)
+ {
+ using (AutoRunner auto = new AutoRunner())
+ {
+ // Note: uncomment if you want to execute only the fixtures
+ // that are tagged with [CurrentFixture] attribute.
+ //
+ // auto.Domain.Filter = FixtureFilters.Current;
+ auto.Run();
+ auto.ReportToHtml();
+ }
+ }
+ }
+}
+
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/combinatorialtest.snippet b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/combinatorialtest.snippet new file mode 100644 index 0000000..68abce0 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/combinatorialtest.snippet @@ -0,0 +1,56 @@ +<?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="CSharp"><![CDATA[ [CombinatorialTest]
+ public void $testName$(
+ [UsingFactories("$type1$Factory")] $type1$ $arg1Name$,
+ [UsingFactories("$type2$Factory")] $type2$ $arg2Name$)
+ {
+
+ }
+
+ [Factory(typeof($type1$))]
+ public IEnumerable $type1$Factory()
+ {
+ $type1$[] values = new $type1$[] { };
+ return values;
+ }
+
+ [Factory(typeof($type2$))]
+ public IEnumerable $type2$Factory()
+ {
+ $type2$[] values = new $type2$[] { };
+ return values;
+ }]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/datafixture.snippet b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/datafixture.snippet new file mode 100644 index 0000000..2d29eb9 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/datafixture.snippet @@ -0,0 +1,63 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>DataFixture</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for DataFixture</Description>
+ <HelpUrl>http://www.mertner.com/confluence/display/MbUnit/DataFixture</HelpUrl>
+ <Shortcut>datafixture</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>namespace</ID>
+ <ToolTip>Test namespace</ToolTip>
+ </Literal>
+ <Literal>
+ <ID>name</ID>
+ <ToolTip>Fixture name</ToolTip>
+ <Default>My</Default>
+ </Literal>
+ <Literal>
+ <ID>resource</ID>
+ <ToolTip>Resource name</ToolTip>
+ <Default>Put the xml resource name here</Default>
+ </Literal>
+ <Literal>
+ <ID>resourceXPath</ID>
+ <ToolTip>Data XPath</ToolTip>
+ <Default>Put the data XPath here</Default>
+ </Literal>
+ <Literal>
+ <ID>testXPath</ID>
+ <ToolTip>Resource XPath</ToolTip>
+ <Default>Put the test case XPath here</Default>
+ </Literal>
+ </Declarations>
+ <Code Language="csharp"><![CDATA[#region using
+using System;
+using MbUnit.Framework;
+#endregion
+
+namespace $namespace$
+{
+ [DataFixture]
+ [ResourceXmlDataProvider(typeof($name$Test),"$resource$","$resourceXPath$")]
+ public class $name$Test
+ {
+ #region Test cases
+ [ForEachTest("$testXPath$")]
+ public void ForEachTest(XmlNode node)
+ {
+ }
+ #endregion
+ }
+}
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/model.snippet b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/model.snippet new file mode 100644 index 0000000..8ad72c3 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/model.snippet @@ -0,0 +1,101 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>Model</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for a Model</Description>
+ <Shortcut>model</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>namespace</ID>
+ <ToolTip>Model namespace</ToolTip>
+ </Literal>
+ <Literal>
+ <ID>type</ID>
+ <ToolTip>Modelled type</ToolTip>
+ <Default>Put the modelled type here</Default>
+ </Literal>
+ <Literal>
+ <ID>basetype</ID>
+ <ToolTip>Modelled Base Type</ToolTip>
+ <Default>Object</Default>
+ </Literal>
+ </Declarations>
+ <Code Language="csharp"><![CDATA[using System;
+using TestFu;
+using TestFu.Models;
+
+namespace $namespace$
+{
+ /// <summary>
+ /// A <see cref="IModel"/> implementation for the
+ /// <see cref="$type$"/> type.
+ /// </summary>
+ [Model(typeof($type$))]
+ // [State("Put a state name here")]
+ // [SubModel("Put a submodel name here")]
+ public class $type$Model : $basetype$Model
+ {
+ #region Constructors
+ /// <summary>
+ /// Initializes a new <see cref="$name$Model"/> instance.
+ /// </summary>
+ public $type$Model()
+ :base()
+ {}
+
+ /// <summary>
+ /// Initializes a new <see cref="$name$Model"/> instance
+ /// to model the <paramref name="modelledType"/> type.
+ /// </summary>
+ /// <param name="modelledType">
+ /// Target <see cref="Type"/> of the model
+ /// </param>
+ public $type$Model(Type modelledType)
+ :base(modelledType)
+ {
+ if (!typeof($type$).IsAssignableFrom(modelledType))
+ throw new ArgumentException("$type$ is not assignable from "+modelledType.FullName,"modelledType");
+ }
+ #endregion
+
+ #region Transitions
+ [Transition]
+ public void SampleTransition($type$ target)
+ {
+ throw new NotImplemented();
+ }
+
+ /// <summary>
+ /// Gets the active <see cref="ITransition"/> instance for
+ /// current <paramref name="target"/>.
+ /// </summary>
+ /// <param name="transitions">
+ /// Collection of active <see cref="ITransition"/> names
+ /// </param>
+ /// <param name="target">
+ /// Current tested instance
+ /// </param>
+ protected override void GetActiveTransitions(
+ ITransitionNameCollection transitions,
+ Object target
+ )
+ {
+ base.GetActiveTransitions(transitions,target);
+ $type$ current = ($type$)target;
+
+ $end$
+ }
+ #endregion
+ }
+}
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/processtestfixture.snippet b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/processtestfixture.snippet new file mode 100644 index 0000000..c06df1f --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/processtestfixture.snippet @@ -0,0 +1,72 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>ProcessTestFixture</Title>
+ <Author>MbUnit</Author>
+ <HelpUrl>http://www.mertner.com/confluence/display/MbUnit/ProcessTestFixture</HelpUrl>
+ <Shortcut>processfixture</Shortcut>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>namespace</ID>
+ <Default>MbUnitTests</Default>
+ </Literal>
+ <Literal>
+ <ID>testName1</ID>
+ <Default>Test1</Default>
+ </Literal>
+ <Literal>
+ <ID>testName2</ID>
+ <Default>Test2</Default>
+ </Literal>
+ <Literal>
+ <ID>testName3</ID>
+ <Default>Test3</Default>
+ </Literal>
+ <Literal>
+ <ID>testName4</ID>
+ <Default>Test4</Default>
+ </Literal>
+ </Declarations>
+ <Code Language="CSharp"><![CDATA[using System;
+using MbUnit.Framework;
+
+namespace $namespace$
+{
+ [ProcessTestFixture]
+ public class $type$Test
+ {
+ [Test]
+ [TestSequence(1)]
+ public void $testName1$()
+ {
+
+ }
+
+ [Test]
+ [TestSequence(2)]
+ public void $testName2$()
+ {
+
+ }
+
+ [Test]
+ [TestSequence(3)]
+ public void $testName3$()
+ {
+
+ }
+
+ [Test]
+ [TestSequence(4)]
+ public void $testName4$()
+ {
+
+ }
+ }
+}]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/rowtest.snippet b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/rowtest.snippet new file mode 100644 index 0000000..e16ae38 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/rowtest.snippet @@ -0,0 +1,114 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>RowTest</Title>
+ <Author>MbUnit</Author>
+ <Description>Inserts a row test with 5 rows and 3 parameters.</Description>
+ <HelpUrl>http://www.mertner.com/confluence/display/MbUnit/RowTestAttribute</HelpUrl>
+ <Shortcut>rowtest</Shortcut>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>testName</ID>
+ <Default>Test</Default>
+ </Literal>
+ <Literal>
+ <ID>type1</ID>
+ <Default>type1</Default>
+ </Literal>
+ <Literal>
+ <ID>arg1Name</ID>
+ <Default>arg1Name</Default>
+ </Literal>
+ <Literal>
+ <ID>type2</ID>
+ <Default>type2</Default>
+ </Literal>
+ <Literal>
+ <ID>arg2Name</ID>
+ <Default>arg2Name</Default>
+ </Literal>
+ <Literal>
+ <ID>type3</ID>
+ <Default>type3</Default>
+ </Literal>
+ <Literal>
+ <ID>arg3Name</ID>
+ <Default>arg3Name</Default>
+ </Literal>
+ <Literal>
+ <ID>value1</ID>
+ <Default>value1</Default>
+ </Literal>
+ <Literal>
+ <ID>value2</ID>
+ <Default>value2</Default>
+ </Literal>
+ <Literal>
+ <ID>value3</ID>
+ <Default>value3</Default>
+ </Literal>
+ <Literal>
+ <ID>value4</ID>
+ <Default>value4</Default>
+ </Literal>
+ <Literal>
+ <ID>value5</ID>
+ <Default>value5</Default>
+ </Literal>
+ <Literal>
+ <ID>value6</ID>
+ <Default>value6</Default>
+ </Literal>
+ <Literal>
+ <ID>value7</ID>
+ <Default>value7</Default>
+ </Literal>
+ <Literal>
+ <ID>value8</ID>
+ <Default>value8</Default>
+ </Literal>
+ <Literal>
+ <ID>value9</ID>
+ <Default>value9</Default>
+ </Literal>
+ <Literal>
+ <ID>value10</ID>
+ <Default>value10</Default>
+ </Literal>
+ <Literal>
+ <ID>value11</ID>
+ <Default>value11</Default>
+ </Literal>
+ <Literal>
+ <ID>value12</ID>
+ <Default>value12</Default>
+ </Literal>
+ <Literal>
+ <ID>value13</ID>
+ <Default>value13</Default>
+ </Literal>
+ <Literal>
+ <ID>value14</ID>
+ <Default>value14</Default>
+ </Literal>
+ <Literal>
+ <ID>value15</ID>
+ <Default>value15</Default>
+ </Literal>
+ </Declarations>
+ <Code Language="CSharp"><![CDATA[ [RowTest]
+ [Row($value1$,$value2$,$value3$)]
+ [Row($value4$,$value5$,$value6$)]
+ [Row($value7$,$value8$,$value9$)]
+ [Row($value10$,$value11$,$value12$)]
+ [Row($value13$,$value14$,$value15$)]
+ public void $testName$($type1$ $arg1Name$, $type2$ $arg2Name$, $type3$ $arg3Name$)
+ {
+
+ }]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/state.snippet b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/state.snippet new file mode 100644 index 0000000..5c116d9 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/state.snippet @@ -0,0 +1,30 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>IState wrapper</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for a IState wrapper</Description>
+ <Shortcut>state</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>name</ID>
+ <ToolTip>State Name</ToolTip>
+ </Literal>
+ </Declarations>
+ <Code Language="csharp"><![CDATA[ public IState $name$State
+ {
+ get
+ {
+ return this.States["$name$"];
+ }
+ }
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/submodel.snippet b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/submodel.snippet new file mode 100644 index 0000000..3d336da --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/submodel.snippet @@ -0,0 +1,34 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>ISubModel wrapper</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for a ISubModel wrapper</Description>
+ <Shortcut>submodel</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>model</ID>
+ <ToolTip>Model type</ToolTip>
+ </Literal>
+ <Literal>
+ <ID>name</ID>
+ <ToolTip>SubModel Name</ToolTip>
+ </Literal>
+ </Declarations>
+ <Code Language="csharp"><![CDATA[ public $model$ $name$Model
+ {
+ get
+ {
+ return ($model$)this.SubModels["$name$"].Model;
+ }
+ }
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/test.snippet b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/test.snippet new file mode 100644 index 0000000..1b91911 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/test.snippet @@ -0,0 +1,28 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>Test Method</Title>
+ <Description>Expansion snippet for a Test method</Description>
+ <Shortcut>test</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>name</ID>
+ <ToolTip>TestName</ToolTip>
+ <Default>Test</Default>
+ </Literal>
+ </Declarations>
+ <Code Language="csharp"><![CDATA[ [Test]
+ public void $name$()
+ {
+
+ }
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/testexpectedexception.snippet b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/testexpectedexception.snippet new file mode 100644 index 0000000..4dbb7b8 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/testexpectedexception.snippet @@ -0,0 +1,34 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>Test Method with ExpectedException</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for a Test method</Description>
+ <HelpUrl>http://www.mertner.com/confluence/display/MbUnit/ExpectedExceptionAttribute</HelpUrl>
+ <Shortcut>testexpectedexception</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>name</ID>
+ <ToolTip>TestName</ToolTip>
+ </Literal>
+ <Literal>
+ <ID>type</ID>
+ <ToolTip>Expected Exception Type</ToolTip>
+ </Literal>
+ </Declarations>
+ <Code Language="csharp"><![CDATA[ [Test]
+ [ExpectedException(typeof($type$Exception))]
+ public void $name$()
+ {
+
+ }
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/testfixture.snippet b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/testfixture.snippet new file mode 100644 index 0000000..b023d63 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/testfixture.snippet @@ -0,0 +1,71 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>TestFixture</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for TestFixture</Description>
+ <Shortcut>testfixture</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>namespace</ID>
+ <ToolTip>Test namespace</ToolTip>
+ </Literal>
+ <Literal>
+ <ID>type</ID>
+ <ToolTip>Tested type</ToolTip>
+ </Literal>
+ </Declarations>
+ <Code Language="csharp"><![CDATA[using System;
+using MbUnit.Framework;
+
+namespace $namespace$
+{
+ /// <summary>
+ /// A <see cref="TestFixture"/> for the <see cref="$type$"/> class.
+ /// </summary>
+ [TestFixture]
+ [TestsOn(typeof($type$))]
+ public class $type$Test
+ {
+ #region Fields, SetUp and TearDown
+ private $type$ target = null;
+
+ /// <summary>
+ /// Sets up the fixture
+ /// </summary>
+ [SetUp]
+ public void SetUp()
+ {
+ this.target = new $type$();
+ }
+ /// <summary>
+ /// Cleans up the fixture
+ /// </summary>
+ [TearDown]
+ public void TearDown()
+ {
+ IDisposable disposable = this.target as IDisposable;
+ if (disposable!=null)
+ disposable.Dispose();
+ }
+ #endregion
+
+ #region Test cases
+ [Test]
+ public void Test()
+ {
+ $end$
+ }
+ #endregion
+ }
+}
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/testsuitefixture.snippet b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/testsuitefixture.snippet new file mode 100644 index 0000000..c8de435 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/testsuitefixture.snippet @@ -0,0 +1,52 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>TestSuiteFixture</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for TestSuiteFixture</Description>
+ <Shortcut>testsuitefixture</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>namespace</ID>
+ <ToolTip>Test namespace</ToolTip>
+ </Literal>
+ <Literal>
+ <ID>name</ID>
+ <ToolTip>Fixture name</ToolTip>
+ <Default>My</Default>
+ </Literal>
+ <Literal>
+ <ID>suiteName</ID>
+ <ToolTip>Suite name</ToolTip>
+ <Default>Suite</Default>
+ </Literal>
+ </Declarations>
+ <Code Language="csharp"><![CDATA[using System;
+using MbUnit.Framework;
+
+namespace $namespace$
+{
+ [TestSuiteFixture]
+ public class $name$Test
+ {
+ [TestSuite]
+ public TestSuite $suiteName$()
+ {
+ TestSuite suite = new TestSuite("$suiteName$");
+
+ $end$
+
+ return suite;
+ }
+ }
+}
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/typefixture.snippet b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/typefixture.snippet new file mode 100644 index 0000000..490e531 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/typefixture.snippet @@ -0,0 +1,67 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>TypeFixture</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for TypeFixture</Description>
+ <HelpUrl>http://www.mertner.com/confluence/display/MbUnit/TypeFixture</HelpUrl>
+ <Shortcut>typefixture</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>namespace</ID>
+ <ToolTip>Test namespace</ToolTip>
+ </Literal>
+ <Literal>
+ <ID>type</ID>
+ <ToolTip>Tested type</ToolTip>
+ </Literal>
+ </Declarations>
+ <Code Language="csharp"><![CDATA[using System;
+using MbUnit.Framework;
+
+namespace $namespace$
+{
+ /// <summary>
+ /// A <see cref="TypeFixture"/> for the <see cref="$type$"/> class.
+ /// </summary>
+ [TypeFixture(typeof($type$))]
+ //[ProviderFactory(typeof($type$Factory),typeof($type$))]
+ [TestsOn(typeof($type$))]
+ public class $type$Test
+ {
+ #region SetUp and TearDown
+ /// <summary>
+ /// Initializes the fixture
+ /// </summary>
+ [SetUp]
+ public void SetUp($type$ value)
+ {
+ }
+ /// <summary>
+ /// Cleans up the fixture
+ /// </summary>
+ [TearDown]
+ public void TearDown($type$ value)
+ {
+ }
+ #endregion
+
+ #region Test cases
+ [Test]
+ public void Test($type$ value)
+ {
+ $end$
+ }
+ #endregion
+ }
+}
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/typefixturewithproviderfactory.snippet b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/typefixturewithproviderfactory.snippet new file mode 100644 index 0000000..72da00b --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/typefixturewithproviderfactory.snippet @@ -0,0 +1,77 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>TypeFixture with Provider Factory</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for TypeFixture</Description>
+ <Shortcut>typefixturefac</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>namespace</ID>
+ <ToolTip>Test namespace</ToolTip>
+ <Default>MbUnitTests</Default>
+ </Literal>
+ <Literal>
+ <ID>type</ID>
+ <ToolTip>Tested type</ToolTip>
+ </Literal>
+ </Declarations>
+ <Code Language="VB"><![CDATA[Imports System
+Imports MbUnit.Framework
+
+Namespace $namespace$
+
+ ''' <summary>
+ ''' A TypeFixture for the $type$ class.
+ ''' </summary>
+ <TypeFixture(GetType($type$)), _
+ ProviderFactory(GetType($type$Factory), GetType($type$)), _
+ TestsOn(GetType($type$))> _
+ Public Class $type$Test
+
+ #Region "SetUp and TearDown"
+ ''' <summary>
+ ''' Initializes the fixture
+ ''' </summary>
+ <SetUp()> _
+ Public Sub SetUp(ByVal value As $type$)
+
+ End Sub
+ ''' <summary>
+ ''' Cleans up the fixture
+ ''' </summary>
+ <TearDown()> _
+ Public Sub TearDown(ByVal value As $type$)
+
+ End Sub
+ #End Region
+
+ #Region "Test cases"
+ <Test()> _
+ Public Sub Test(ByVal value As $type$)
+
+ End Sub
+ #End Region
+
+ End Class
+
+ Public Class $type$Factory
+ <Factory()> _
+ Public ReadOnly Property Factory As $type$
+ Get
+ Return New $type$
+ End Get
+ End Property
+ End Class
+
+End Namespace
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/usingmbunit.snippet b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/usingmbunit.snippet new file mode 100644 index 0000000..c1d9113 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/usingmbunit.snippet @@ -0,0 +1,19 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>Using MbUnit Includes</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for the MbUnit using statements</Description>
+ <Shortcut>usingMbUnit</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Code Language="csharp"><![CDATA[using MbUnit.Framework;
+
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitVBSnippets/autorunner.snippet b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/autorunner.snippet new file mode 100644 index 0000000..3c9e51c --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/autorunner.snippet @@ -0,0 +1,45 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>AutoRunner</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for a AutorRunner main.</Description>
+ <Shortcut>autorunner</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>name</ID>
+ <ToolTip>Main class name</ToolTip>
+ <Default>Program</Default>
+ </Literal>
+ <Literal>
+ <ID>namespace</ID>
+ <Default>MbUnitTests</Default>
+ </Literal>
+ </Declarations>
+ <Code Language="VB"><![CDATA[Imports System
+Imports MbUnit.Core
+'Imports MbUnit.Core.Filters
+
+Namespace $namespace$
+ Class $name$
+ Public Shared Sub Main()
+ Using auto As AutoRunner = New AutoRunner()
+ ' Note: uncomment "Imports MbUnit.Core.Filters" and the following line if you want to
+ ' execute only the fixtures that are tagged with <CurrentFixture()> attribute.
+
+ ' auto.Domain.Filter = FixtureFilters.Current
+ auto.Run()
+ auto.ReportToHtml()
+ End Using
+ End Sub
+ End Class
+End Namespace]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitVBSnippets/combinatorialtest.snippet b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/combinatorialtest.snippet new file mode 100644 index 0000000..bc46949 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/combinatorialtest.snippet @@ -0,0 +1,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>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitVBSnippets/datafixture.snippet b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/datafixture.snippet new file mode 100644 index 0000000..5f8f402 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/datafixture.snippet @@ -0,0 +1,61 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>DataFixture</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for DataFixture</Description>
+ <HelpUrl>http://www.mertner.com/confluence/display/MbUnit/DataFixture</HelpUrl>
+ <Shortcut>datafixture</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>namespace</ID>
+ <ToolTip>Test namespace</ToolTip>
+ <Default>MbUnitTests</Default>
+ </Literal>
+ <Literal>
+ <ID>name</ID>
+ <ToolTip>Fixture name</ToolTip>
+ <Default>My</Default>
+ </Literal>
+ <Literal>
+ <ID>resource</ID>
+ <ToolTip>Resource name</ToolTip>
+ <Default>Put the xml resource name here</Default>
+ </Literal>
+ <Literal>
+ <ID>resourceXPath</ID>
+ <ToolTip>Data XPath</ToolTip>
+ <Default>Put the data XPath here</Default>
+ </Literal>
+ <Literal>
+ <ID>testXPath</ID>
+ <ToolTip>Resource XPath</ToolTip>
+ <Default>Put the test case XPath here</Default>
+ </Literal>
+ </Declarations>
+ <Code Language="VB"><![CDATA[Imports System
+Imports System.Xml
+Imports MbUnit.Framework
+
+Namespace $namespace$
+ <DataFixture(), _
+ ResourceXmlDataProvider(GetType($name$Test),"$resource$","$resourceXPath$")> _
+ Public Class $name$Test
+ #Region "Test cases"
+ <ForEachTest("$testXPath$")> _
+ Public Sub ForEachTest(ByVal node As XmlNode)
+
+ End Sub
+ #End Region
+ End Class
+End Namespace
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitVBSnippets/model.snippet b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/model.snippet new file mode 100644 index 0000000..354083c --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/model.snippet @@ -0,0 +1,95 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>Model</Title>
+ <Description>Expansion snippet for a Model</Description>
+ <Shortcut>model</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>namespace</ID>
+ <ToolTip>Model namespace</ToolTip>
+ <Default>MbUnitTests</Default>
+ </Literal>
+ <Literal>
+ <ID>type</ID>
+ <ToolTip>Modelled type</ToolTip>
+ <Default>Put the modelled type here</Default>
+ </Literal>
+ <Literal>
+ <ID>basetype</ID>
+ <ToolTip>Modelled Base Type</ToolTip>
+ <Default>Object</Default>
+ </Literal>
+ </Declarations>
+ <Code Language="VB"><![CDATA[Imports System
+Imports TestFu
+Imports TestFu.Models
+
+Namespace $namespace$
+ ''' <summary>
+ ''' A IModel implementation for the $type$ type.
+ ''' </summary>
+ ' <State("Put a state name here")>
+ ' <SubModel("Put a submodel name here")>
+ <Model(GetType($type$))> _
+ Public Class $type$Model
+ Inherits $basetype$Model
+
+ #Region "Constructors"
+ ''' <summary>
+ ''' Initializes a new $type$Model instance.
+ ''' </summary>
+ Public Sub New()
+
+ End Sub
+
+ ''' <summary>
+ ''' Initializes a new "$name$Model" instance to model the modelledType type.
+ ''' </summary>
+ ''' <param name="modelledType">
+ ''' Target Type of the model
+ ''' </param>
+ Public Sub New(ByVal modelledType As Type)
+ MyBase.New(modelledType)
+ If Not GetType($type$).IsAssignableFrom(modelledType)
+ Throw New ArgumentException("$type$ is not assignable from "+modelledType.FullName,"modelledType")
+ End If
+ End Sub
+ #End Region
+
+ #Region "Transitions"
+ <Transition()> _
+ Public Sub SampleTransition(ByVal target As $type$)
+ Throw New NotImplementedException()
+ End Sub
+
+ ''' <summary>
+ ''' Gets the active ITransition instance for current target.
+ ''' </summary>
+ ''' <param name="transitions">
+ ''' Collection of active ITransition names
+ ''' </param>
+ ''' <param name="target">
+ ''' Current tested instance
+ ''' </param>
+ Protected Overrides Sub GetActiveTransitions( _
+ ByVal transitions as ITransitionNameCollection , _
+ ByVal target as Object)
+
+ MyBase.GetActiveTransitions(transitions,target)
+ Dim current As $type$ = DirectCast(target, $type$)
+
+ End Sub
+ #End Region
+ End Class
+End Namespace
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitVBSnippets/processtestfixture.snippet b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/processtestfixture.snippet new file mode 100644 index 0000000..8b53d58 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/processtestfixture.snippet @@ -0,0 +1,75 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>ProcessTestFixture</Title>
+ <Author>MbUnit</Author>
+ <HelpUrl>http://www.mertner.com/confluence/display/MbUnit/ProcessTestFixture</HelpUrl>
+ <Shortcut>processfixture</Shortcut>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>namespace</ID>
+ <Default>MbUnitTests</Default>
+ </Literal>
+ <Literal>
+ <ID>testName1</ID>
+ <Default>Test1</Default>
+ </Literal>
+ <Literal>
+ <ID>testName2</ID>
+ <Default>Test2</Default>
+ </Literal>
+ <Literal>
+ <ID>testName3</ID>
+ <Default>Test3</Default>
+ </Literal>
+ <Literal>
+ <ID>testName4</ID>
+ <Default>Test4</Default>
+ </Literal>
+ <Literal>
+ <ID>type</ID>
+ <ToolTip>The class being tested</ToolTip>
+ <Default>type</Default>
+ </Literal>
+ </Declarations>
+ <Code Language="VB"><![CDATA[Imports System
+Imports MbUnit.Framework
+
+Namespace $namespace$
+
+ <ProcessTestFixture()> _
+ Public Class $type$Test
+
+ <Test(), _
+ TestSequence(1)> _
+ Public Sub $testName1$()
+
+ End Sub
+
+ <Test(), _
+ TestSequence(2)> _
+ Public Sub $testName2$()
+
+ End Sub
+
+ <Test(), _
+ TestSequence(3)> _
+ Public Sub $testName3$()
+
+ End Sub
+
+ <Test(), _
+ TestSequence(4)> _
+ Public Sub $testName4$()
+
+ End Sub
+
+ End Class
+
+End Namespace]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitVBSnippets/rowtest.snippet b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/rowtest.snippet new file mode 100644 index 0000000..8919619 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/rowtest.snippet @@ -0,0 +1,113 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>RowTest</Title>
+ <Author>MbUnit</Author>
+ <Description>Inserts a row test with 5 rows and 3 parameters.</Description>
+ <HelpUrl>http://www.mertner.com/confluence/display/MbUnit/RowTestAttribute</HelpUrl>
+ <Shortcut>rowtest</Shortcut>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>testName</ID>
+ <Default>Test</Default>
+ </Literal>
+ <Literal>
+ <ID>type1</ID>
+ <Default>type1</Default>
+ </Literal>
+ <Literal>
+ <ID>arg1Name</ID>
+ <Default>arg1Name</Default>
+ </Literal>
+ <Literal>
+ <ID>type2</ID>
+ <Default>type2</Default>
+ </Literal>
+ <Literal>
+ <ID>arg2Name</ID>
+ <Default>arg2Name</Default>
+ </Literal>
+ <Literal>
+ <ID>type3</ID>
+ <Default>type3</Default>
+ </Literal>
+ <Literal>
+ <ID>arg3Name</ID>
+ <Default>arg3Name</Default>
+ </Literal>
+ <Literal>
+ <ID>value1</ID>
+ <Default>value1</Default>
+ </Literal>
+ <Literal>
+ <ID>value2</ID>
+ <Default>value2</Default>
+ </Literal>
+ <Literal>
+ <ID>value3</ID>
+ <Default>value3</Default>
+ </Literal>
+ <Literal>
+ <ID>value4</ID>
+ <Default>value4</Default>
+ </Literal>
+ <Literal>
+ <ID>value5</ID>
+ <Default>value5</Default>
+ </Literal>
+ <Literal>
+ <ID>value6</ID>
+ <Default>value6</Default>
+ </Literal>
+ <Literal>
+ <ID>value7</ID>
+ <Default>value7</Default>
+ </Literal>
+ <Literal>
+ <ID>value8</ID>
+ <Default>value8</Default>
+ </Literal>
+ <Literal>
+ <ID>value9</ID>
+ <Default>value9</Default>
+ </Literal>
+ <Literal>
+ <ID>value10</ID>
+ <Default>value10</Default>
+ </Literal>
+ <Literal>
+ <ID>value11</ID>
+ <Default>value11</Default>
+ </Literal>
+ <Literal>
+ <ID>value12</ID>
+ <Default>value12</Default>
+ </Literal>
+ <Literal>
+ <ID>value13</ID>
+ <Default>value13</Default>
+ </Literal>
+ <Literal>
+ <ID>value14</ID>
+ <Default>value14</Default>
+ </Literal>
+ <Literal>
+ <ID>value15</ID>
+ <Default>value15</Default>
+ </Literal>
+ </Declarations>
+ <Code Language="VB"><![CDATA[ <RowTest(), _
+ Row($value1$,$value2$,$value3$), _
+ Row($value4$,$value5$,$value6$), _
+ Row($value7$,$value8$,$value9$), _
+ Row($value10$,$value11$,$value12$), _
+ Row($value13$,$value14$,$value15$)> _
+ Public Sub $testName$(ByVal $arg1Name$ As $type1$, ByVal $arg2Name$ As $type2$, ByVal $arg3Name$ As $type3$)
+
+ End Sub]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitVBSnippets/state.snippet b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/state.snippet new file mode 100644 index 0000000..c60429a --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/state.snippet @@ -0,0 +1,27 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>IState wrapper</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for a IState wrapper</Description>
+ <Shortcut>state</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>name</ID>
+ <ToolTip>State Name</ToolTip>
+ </Literal>
+ </Declarations>
+ <Code Language="VB"><![CDATA[ Public Property $name$State as IState
+ Get
+ Return Me.States("$name$")
+ End Get
+ End Property ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitVBSnippets/submodel.snippet b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/submodel.snippet new file mode 100644 index 0000000..8f4f645 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/submodel.snippet @@ -0,0 +1,32 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>ISubModel wrapper</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for a ISubModel wrapper</Description>
+ <Shortcut>submodel</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>model</ID>
+ <ToolTip>Model type</ToolTip>
+ </Literal>
+ <Literal>
+ <ID>name</ID>
+ <ToolTip>SubModel Name</ToolTip>
+ </Literal>
+ </Declarations>
+ <Code Language="VB"><![CDATA[ Public ReadOnly Property $name$Model As $model$
+ Get
+ Return DirectCast(Me.SubModels("$name$").Model, $model$)
+ End Get
+ End Property
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitVBSnippets/test.snippet b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/test.snippet new file mode 100644 index 0000000..625c231 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/test.snippet @@ -0,0 +1,28 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>Test Method</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for a Test method</Description>
+ <Shortcut>test</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>name</ID>
+ <ToolTip>TestName</ToolTip>
+ <Default>Test</Default>
+ </Literal>
+ </Declarations>
+ <Code Language="VB"><![CDATA[ <Test()> _
+ Public Sub $name$()
+
+ End Sub
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitVBSnippets/testexpectedexception.snippet b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/testexpectedexception.snippet new file mode 100644 index 0000000..caac89d --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/testexpectedexception.snippet @@ -0,0 +1,32 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>Test Method with ExpectedException</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for a Test method with and expected exception</Description>
+ <Shortcut>testexpectedexception</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>name</ID>
+ <ToolTip>TestName</ToolTip>
+ <Default>Test</Default>
+ </Literal>
+ <Literal>
+ <ID>type</ID>
+ <ToolTip>Expected Exception Type</ToolTip>
+ </Literal>
+ </Declarations>
+ <Code Language="VB"><![CDATA[ <Test(),ExpectedException(GetType($type$Exception))> _
+ Public Sub $name$()
+
+ End Sub
+]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitVBSnippets/testfixture.snippet b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/testfixture.snippet new file mode 100644 index 0000000..9febc88 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/testfixture.snippet @@ -0,0 +1,68 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>TestFixture</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for TestFixture</Description>
+ <Shortcut>testfixture</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>namespace</ID>
+ <ToolTip>Test namespace</ToolTip>
+ <Default>MbUnitTests</Default>
+ </Literal>
+ <Literal>
+ <ID>type</ID>
+ <ToolTip>Tested type</ToolTip>
+ </Literal>
+ </Declarations>
+ <Code Language="VB"><![CDATA[Imports System
+Imports MbUnit.Framework
+
+Namespace $namespace$
+
+ ''' <summary>
+ ''' A TestFixture for the $type$ class.
+ ''' </summary>
+ <TestFixture(), _
+ TestsOn(GetType($type$))> _
+ Public Class $type$Test
+ #Region "Fields, SetUp and TearDown"
+ Private target As $type$ = Nothing
+
+ ''' <summary>
+ ''' Sets up the fixture
+ ''' </summary>
+ <SetUp()> _
+ Public Sub SetUp()
+ Mew.target = New $type$()
+ End Sub
+ ''' <summary>
+ ''' Cleans up the fixture
+ '' </summary>
+ <TearDown()> _
+ public void TearDown()
+ Dim disposable As IDisposable = TryCast(this.target, IDisposable)
+ If disposable IsNot Nothing Then
+ disposable.Dispose()
+ End If
+ End Sub
+ #End Region
+
+ #Region "Test cases"
+ <Test()> _
+ Public Sub Test()
+
+ End Sub
+ #End Region
+ End Class
+End Namespace]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitVBSnippets/testsuitefixture.snippet b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/testsuitefixture.snippet new file mode 100644 index 0000000..c47decb --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/testsuitefixture.snippet @@ -0,0 +1,48 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>TestSuiteFixture</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for TestSuiteFixture</Description>
+ <Shortcut>testsuitefixture</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>namespace</ID>
+ <ToolTip>Test namespace</ToolTip>
+ <Default>MbUnitTests</Default>
+ </Literal>
+ <Literal>
+ <ID>name</ID>
+ <ToolTip>Fixture name</ToolTip>
+ <Default>My</Default>
+ </Literal>
+ <Literal>
+ <ID>suiteName</ID>
+ <ToolTip>Suite name</ToolTip>
+ <Default>Suite</Default>
+ </Literal>
+ </Declarations>
+ <Code Language="VB"><![CDATA[Imports System
+Imports MbUnit.Framework
+
+Namespace $namespace$
+ <TestSuiteFixture()> _
+ Public Class $name$Test
+ <TestSuite()> _
+ Public Function $suiteName$() As TestSuite
+ Dim suite As TestSuite = New TestSuite("$suiteName$")
+
+ Return suite
+ End Function
+ End Class
+End Namespace
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitVBSnippets/typefixture.snippet b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/typefixture.snippet new file mode 100644 index 0000000..60d4f66 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/typefixture.snippet @@ -0,0 +1,74 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>TypeFixture</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for TypeFixture</Description>
+ <HelpUrl>http://www.mertner.com/confluence/display/MbUnit/TypeFixture</HelpUrl>
+ <Shortcut>typefixture</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>namespace</ID>
+ <ToolTip>Test namespace</ToolTip>
+ <Default>MbUnitTests</Default>
+ </Literal>
+ <Literal>
+ <ID>type</ID>
+ <ToolTip>Tested type</ToolTip>
+ </Literal>
+ <Literal>
+ <ID>instanceName</ID>
+ <Default>instanceName</Default>
+ </Literal>
+ </Declarations>
+ <Code Language="VB"><![CDATA[Imports System
+Imports MbUnit.Core.Framework
+Imports MbUnit.Framework
+
+Namespace $namespace$
+ ''' <summary>
+ ''' A TypeFixture for the $type$ class.
+ ''' </summary>
+ <TypeFixture(GetType($type$)), _
+ TestsOn(GetType($type$))> _
+ Public Class $type$Test
+ #Region "SetUp and TearDown"
+ ''' <summary>
+ ''' Initializes the fixture
+ ''' </summary>
+ <SetUp()> _
+ Public Sub SetUp(ByVal value As $type$)
+ End Sub
+ ''' <summary>
+ ''' Cleans up the fixture
+ ''' </summary>
+ <TearDown()> _
+ Public Sub TearDown(ByVal value As $type$)
+ End Sub
+ #End Region
+
+ #Region "Test cases"
+ <Test()> _
+ Public Sub Test(ByVal value As $type$)
+ End Sub
+ #End Region
+
+ #Region "Providers"
+ <Provider(typeof($type$))> _
+ Public Function Provider$type$() As $type$
+ Dim $instanceName$ As $type$ = New $type$()
+ Return $instanceName$
+ End Function
+ #End Region
+ End Class
+End Namespace
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitVBSnippets/typefixturewithproviderfactory.snippet b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/typefixturewithproviderfactory.snippet new file mode 100644 index 0000000..72da00b --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/typefixturewithproviderfactory.snippet @@ -0,0 +1,77 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>TypeFixture with Provider Factory</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for TypeFixture</Description>
+ <Shortcut>typefixturefac</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>namespace</ID>
+ <ToolTip>Test namespace</ToolTip>
+ <Default>MbUnitTests</Default>
+ </Literal>
+ <Literal>
+ <ID>type</ID>
+ <ToolTip>Tested type</ToolTip>
+ </Literal>
+ </Declarations>
+ <Code Language="VB"><![CDATA[Imports System
+Imports MbUnit.Framework
+
+Namespace $namespace$
+
+ ''' <summary>
+ ''' A TypeFixture for the $type$ class.
+ ''' </summary>
+ <TypeFixture(GetType($type$)), _
+ ProviderFactory(GetType($type$Factory), GetType($type$)), _
+ TestsOn(GetType($type$))> _
+ Public Class $type$Test
+
+ #Region "SetUp and TearDown"
+ ''' <summary>
+ ''' Initializes the fixture
+ ''' </summary>
+ <SetUp()> _
+ Public Sub SetUp(ByVal value As $type$)
+
+ End Sub
+ ''' <summary>
+ ''' Cleans up the fixture
+ ''' </summary>
+ <TearDown()> _
+ Public Sub TearDown(ByVal value As $type$)
+
+ End Sub
+ #End Region
+
+ #Region "Test cases"
+ <Test()> _
+ Public Sub Test(ByVal value As $type$)
+
+ End Sub
+ #End Region
+
+ End Class
+
+ Public Class $type$Factory
+ <Factory()> _
+ Public ReadOnly Property Factory As $type$
+ Get
+ Return New $type$
+ End Get
+ End Property
+ End Class
+
+End Namespace
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitVBSnippets/usingmbunit.snippet b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/usingmbunit.snippet new file mode 100644 index 0000000..413759c --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/usingmbunit.snippet @@ -0,0 +1,19 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>Using MbUnit Includes</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for the MbUnit using statements</Description>
+ <Shortcut>usingMbUnit</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Code Language="VB"><![CDATA[Imports MbUnit.Framework
+
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitXMLSnippets/msbuild.snippet b/tools/MbUnit/VSSnippets/MbUnitXMLSnippets/msbuild.snippet new file mode 100644 index 0000000..fb788fd --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitXMLSnippets/msbuild.snippet @@ -0,0 +1,40 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>MSBuild task</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for a MSBuild task</Description>
+ <Shortcut>msbuild</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>name</ID>
+ <ToolTip>Fixture name</ToolTip>
+ <Default>My</Default>
+ </Literal>
+ </Declarations>
+ <Code Language="XML"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <UsingTask AssemblyName="MbUnit.MSBuild.Tasks" TaskName="MbUnit.MSBuild.Tasks.MbUnit"/>
+ <ItemGroup>
+ <TestAssemblies Include="$end$" />
+ </ItemGroup>
+ <Target Name="Tests">
+ <MbUnit
+ Assemblies ="@(TestAssemblies)"
+ HaltOnFailure="false"
+ ReportTypes="Xml;Text;Html;Dox"
+ ReportFileNameFormat="mbunit-{0}-{1}"
+ />
+ </Target>
+</Project>
+
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/VSSnippets/MbUnitXMLSnippets/nant.snippet b/tools/MbUnit/VSSnippets/MbUnitXMLSnippets/nant.snippet new file mode 100644 index 0000000..4e58569 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitXMLSnippets/nant.snippet @@ -0,0 +1,34 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>NAnt task</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for a NAnt task</Description>
+ <Shortcut>nant</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>name</ID>
+ <ToolTip>Fixture name</ToolTip>
+ <Default>My</Default>
+ </Literal>
+ </Declarations>
+ <Code Language="XML"><![CDATA[<!-- MbUnit NAnt task definition -->
+<mbunit>
+ <formatter type="Html"
+ userfile="true"
+ outputdir=".."
+ />
+ <test>
+ $end$
+ </test>
+</mbunit>
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file diff --git a/tools/MbUnit/XsdTidy.exe b/tools/MbUnit/XsdTidy.exe Binary files differnew file mode 100644 index 0000000..6639a48 --- /dev/null +++ b/tools/MbUnit/XsdTidy.exe diff --git a/tools/MbUnit/log4net.dll b/tools/MbUnit/log4net.dll Binary files differnew file mode 100644 index 0000000..46ecf22 --- /dev/null +++ b/tools/MbUnit/log4net.dll diff --git a/tools/MbUnit/uninst.exe b/tools/MbUnit/uninst.exe Binary files differnew file mode 100644 index 0000000..42a393f --- /dev/null +++ b/tools/MbUnit/uninst.exe |
