title: Unit testing with an entire datatable
body: <p>I have a method that calculates intraclass correlation based off a datatable of values.  I wanted to write a unit test for this method that would read in the results from a CSV file and pass the datatable to the method I've written.  I thought I could use the DataSourceAttribute on the method to pass in the entire dataset, but I guess using this method only passes in one row at a time.</p>
  
  <pre><code>[TestMethod()]
      [DeploymentItem("IntraclassCorrelationValues.csv")]
      [DataSource("Microsoft.VisualStudio.TestTools.DataSource.CSV", "|DataDirectory|\\IntraclassCorrelationValues.csv", "IntraclassCorrelationValues#csv", Microsoft.VisualStudio.TestTools.UnitTesting.DataAccessMethod.Sequential)]
      public void TestCorrelation() {}
  </code></pre>
  
  <p>Is there another method or attribute that will pass in the entire dataset instead of row by row to a test method or am I stuck writing code to read each line and build the datatable myself?</p>