I\'ve implemented a data driven test using MsTest framework.
I was wondering if there was a way to get the iteration / line number of the current test code from the Test
Try this:
int currentIteration = TestContext.DataRow.Table.Rows.IndexOf(TestContext.DataRow);