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

DataTestMethodAttribute vs TestMethodAttribute #614

Closed
cactuaroid opened this issue Jun 3, 2019 · 3 comments
Closed

DataTestMethodAttribute vs TestMethodAttribute #614

cactuaroid opened this issue Jun 3, 2019 · 3 comments

Comments

@cactuaroid
Copy link

Which should I specify with DataRowAttribute? No explicit guideline is found on reference.

Could you put some explanations on DataTestMethodAttribute ?

DataTestMethodAttribute has been included since initial commit. According to #238, now DataTestMethodAttribute seems to be integrated into TestMethodAttribute in the commit. I think DataTestMethodAttribute is now obsolete and just for backward compatibility.

DataRowAttribute example uses TestMethodAttribute, whereas this example uses DataTestMethodAttribute.

I found the same confusion here.
https://stackoverflow.com/questions/46904953/datatestmethod-vs-testmethod

@ShreyasRmsft
Copy link
Member

Hi @cactuaroid DataTestMethod is not needed.

Go ahead and use TestMethod with DataRows to data drive your tests.

For any more doubts follow the official docs at https://github.com/microsoft/testfx-docs

@cactuaroid
Copy link
Author

Thank you @ShreyasRmsft, understood.

I found exactly same question in the testfx-docs repository too.
microsoft/testfx-docs#64

@ShreyasRmsft
Copy link
Member

Closing this here. Please track the issue on the docs repo.

@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants