testfx icon indicating copy to clipboard operation
testfx copied to clipboard

TestContext should provide that is a TestMethod or a DataTestMethod

Open Tbd19 opened this issue 7 years ago • 0 comments

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.

Tbd19 avatar Jul 12 '18 11:07 Tbd19