Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestContext should provide that is a TestMethod or a DataTestMethod #459

Closed
Tbd19 opened this issue Jul 12, 2018 · 1 comment · Fixed by #4037
Closed

TestContext should provide that is a TestMethod or a DataTestMethod #459

Tbd19 opened this issue Jul 12, 2018 · 1 comment · Fixed by #4037

Comments

@Tbd19
Copy link

Tbd19 commented Jul 12, 2018

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.

@Evangelink
Copy link
Member

MSTest 3.7 will contain a bunch of properties that should bring most of what is needed (display name and data).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants