Sha256: 9ebc1a1e4bfdd6e5ca6e843b9366387363e7a7fa895c327d5a3a97acdc3aa0af

Contents?: true

Size: 1.7 KB

Versions: 1

Compression:

Stored size: 1.7 KB

Contents

<?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>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mbunit2-2.4.2.355.20100801 docs/extras/Snippets/combinatorialtest.snippet