1
MSTest中相当于MbUnit.Framework.RowAttribute
?什么是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的做了什么?