开发者

MSTest - data drive ntest from a method?

开发者 https://www.devze.com 2023-03-07 18:18 出处:网络
Anyonw knows how? There is a way to put in a data source, but what is the syntax to have the data injected from a amethod?

Anyonw knows how? There is a way to put in a data source, but what is the syntax to have the data injected from a amethod?

I need to test all classes with specific attributes. The test basically validates certain attributes in certain开发者_JAVA百科 assemblies (checking whether the database is in sync).

For that it would be nieto use one data driven test htat has a "driver" method that feeds in the names or types of the classes to test.


You can use the DataSourceAttribute http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.unittesting.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号