title: Unit testing: Sending complex object as a input parameter to my test method using MSTest
body: <p>I'm trying to send a <code>List&lt;DataStatusItem&gt;</code> as a input parameter to my unit test method using <code>DataRow</code> attribute as below,</p>
  
  <pre><code>[TestClass]
  public class UpdateProcessingTestController
  {
      private List&lt;DataStatusItem&gt; DataStatusItemsTestSetup = new List&lt;DataStatusItem&gt;() {
              new DataStatusItem { DataItemID = 1, DataItemCurrentStatusID = 1, DataItemStatusID = 1, DateEffective = DateTime.Now }
      };
  
      private readonly Mock&lt;IEmployee&gt; moqEmployee;
  
      public UpdateProcessingTestController()
      {
          moqEmployee = new Mock&lt;IEmployee&gt;();
      }
  
      [TestMethod]
      [DataRow(DataStatusItemsTestSetup, 1, 8, 1)] // **This is where it is throwing me compilation error**
      public void SetDataItems(List&lt;DataStatusItem&gt; DataStatusItems,int brand, int dataType, int processingStatus)
  }
  </code></pre>
  
  <p>Please let me know how to send the List as a input parameter to my test method.</p>