开发者

MSTest - data drive ntest from a method?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜