MSTest是否等效于NUnit的参数化测试? [英] MSTest Equivalent for NUnit's Parameterized Tests?
本文介绍了MSTest是否等效于NUnit的参数化测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
NUnit支持一项功能,您可以为要多次运行的单元测试指定一组数据输入.
NUnit supports a feature where you can specify a set of data inputs for a unit test to be run multiple times.
[RowTest]
[Row(1001,1,2,3)]
[Row(1,1001,2,3)]
[Row(1,2,1001,3)]
public void SumTests(int x, int y, int z, int expected)
{
...
}
使用MSTest完成相同类型的事情的最佳方法是什么?我找不到相似的属性集.
What's the best way to accomplish this same type of thing using MSTest? I can't find a similar set of attributes.
推荐答案
查看全文