title: Unit Test won't run with array as last parameter
body: <p>I have two unit tests as follows:</p>
  
  <pre><code>[DataTestMethod]
  [DataRow("input1", new object[] { "input2" })]
  public void Test1(string input1, object[] input2)
  {
  
  }
  
  [DataTestMethod]
  [DataRow(new object[] { "input1" }, "input2")]
  public void Test2(object[] input1, string input2)
  {
  
  }
  </code></pre>
  
  <p>The first unit test, <code>Test1</code>, won't run because <code>System.ArgumentException: Object of type 'System.String' cannot be converted to type 'System.Object[]'.</code>. <code>Test2</code> (with the parameters switched) runs just fine. I think this might be because <code>Test1</code> is sensing <code>input2</code> as a sort of <a href="https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/params" rel="nofollow noreferrer"><code>params</code></a>. <s>As I am not specifying <code>params</code>, I am not sure how this could be the case.</s> (<a href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualstudio.testtools.unittesting.datarowattribute.-ctor?view=mstest-net-1.2.0#Microsoft_VisualStudio_TestTools_UnitTesting_DataRowAttribute__ctor_System_Object_System_Object___" rel="nofollow noreferrer">it seems that <code>DataRowAttribute</code> specifies <code>params</code></a>) What is a way in which I can get <code>Test1</code> to work (with the parameters in that order)?</p>
  
  <p>As Jonathan suggested, I have tried the following with the same results:</p>
  
  <pre><code>[DataTestMethod]
  [DataRow("input1", (object)new object[] { (object)"input2" })]
  public void Test1(string input1, object[] input2)
  {
  
  }
  </code></pre>