【发布时间】:2012-07-02 20:59:17
【问题描述】:
哪个相当于 MSTest 中的MbUnit.Framework.RowAttribute?
我想为 MSTest TestMethod 提供不同的数据。在MBUit 中非常简单:
[Row("foo", "bar", "foo bar")]
[Row("fat", "cat", "fat cat")]
[Row("wise", "geek", "wise geek")]
[Test]
public void TestMyConcat(string first, string second, string expected)
{
string actual = MyConcat(first, second);
Assert.AreEqual(expected, actual);
}
这在 MSTest 中是如何完成的?
【问题讨论】:
标签: mstest