testfx
testfx copied to clipboard
TestContext should provide that is a TestMethod or a DataTestMethod
I have some unit tests where I use the TestContext.TestName. However if I use it in a DataTestMethod my tests are failing because there is a collision between the tests because of the TestName.
Is there a way to determine if the test is a DataTestMethod? Or even better to retrieve the DisplayName from the TestContext.