I am new to the Unit Testing Framework. Using VS 2010, I use an XML as my datasource.
Suppose my XML would look like this:
<testgroup>
<test>
<param1>100</param1>
<param2>200</param2>
</test>
<test>
<param1>333</param1>
<param2>222</param2>
</test>
</testgroup>
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.
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?
I haven't found a solution so far. Perhaps the datasource is not meant to be test data driven this way.