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 TestContext object?
As far as I can see, the only property relevant to DDT is DataRow that enables getting info for the current iteration from the data source, but I don't see any property that gives me what I need.
this is without the DataSource attribute but i can tell you that it iterate by it self without the for loop
Try this: