Snippet for creating testmethod in VB.NET

Posted by Marcus Hammarberg on September 7, 2010

I've already posted this snippet in C#, but as I from time to time need it in VB.NET I'll post that too. Here you go:

<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets  xmlns="">
    <CodeSnippet Format="1.0.0">
            <Description>Code snippet for creating a testmethod</Description>
            <Author>Marcusoft (</Author>
                    <ToolTip>The name of the test</ToolTip>
            <Code Language="VB">
              <![CDATA[<TestMethod()> _
              Public Sub should_$methodName$()
        ' Arrange
        ' Act

        ' Assert
        Assert.Fail("Implement test!")
    End Sub]]>

Published by Marcus Hammarberg on Last updated