title: VB.NET Unit Test with parameters
body: <p>At my job, I often switch between developing on projects written in VB.NET and C#. I'm fairly new to Unit Testing and I've been researching and doing some tutorials on how to implement it, but everything I've been able to find has been written in C# (no vb.net examples). I use Visual Studio 2017, so I'm using msTest for Unit Testing.</p>
  
  <p>For the most part I've been able to figure out the syntax differences between C# and vb.net unit testing with msTest, but there's one feature I can't seem to figure out in vb.net. In C# you can do this:</p>
  
  <pre><code>[DataTestMethod]
  [DataRow(1)]
  [DataRow(2)]
  [DataRow(3)]
  public void unitTest(int n) {
      // Test code here
  }
  </code></pre>
  
  <p>This allows you to run the same test for multiple values. I can't find the equivalent syntax for vb.net. Is there even a way to do this in vb.net?</p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>EDIT:</strong>
  Here is how my unit test class is setup and what I'm hoping to achieve:</p>
  
  <pre class="lang-vb prettyprint-override"><code>Imports System
  Imports Microsoft.VisualStudio.TestTools.UnitTesting
  
  &lt;TextClass()&gt; Public Class MyUnitTests
  
      &lt;DataTestMethod()&gt; _
      &lt;DataRow(1)&gt; _
      &lt;DataRow(2)&gt; _
      &lt;DataRow(3)&gt; _
      Public Sub IsValueLessThanTwo(ByVal n as Integer)
          Assert.IsTrue(n &lt; 2, $"{n} is not less than 2")
      End Sub
  
  End Class
  </code></pre>
  
  <p>I would expect this test to run 3 times and pass when the value is 1 but fail when the value is 2 or 3. If I convert this to C#, it runs as expected. But as is, when I build the project I get the following errors:</p>
  
  <blockquote>
    <p>Type 'DataTestMethod' is not defined.</p>
    
    <p>'DataRow' cannot be used as an attribute because it does not inherit from 'System.Attribute'.</p>
  </blockquote>