title: C# Unit Testing - XML Datasource containing multiple tests
body: <p>I am new to the Unit Testing Framework. Using VS 2010, I use an XML as my datasource. </p>
  
  <p>Suppose my XML would look like this:</p>
  
  <pre><code>&lt;testgroup&gt;
    &lt;test&gt;
      &lt;param1&gt;100&lt;/param1&gt;
      &lt;param2&gt;200&lt;/param2&gt;
    &lt;/test&gt;
    &lt;test&gt;
      &lt;param1&gt;333&lt;/param1&gt;
      &lt;param2&gt;222&lt;/param2&gt;
    &lt;/test&gt;
  &lt;/testgroup&gt;
  </code></pre>
  
  <p>So a test group could contain a lot of tests. It wouldn't be efficient to break them out in individual xml files. For simplicity, pretend that param1 is an int and param2 is another int and my test would be to verify that param2 > param1.</p>
  
  <p>Is it possible to write a single TestMethod so that it iterates through the various tests from the XML such that the Unit Test Framework will show a test for each?</p>
  
  <p>I haven't found a solution so far. Perhaps the datasource is not meant to be test data driven this way.</p>