Tag: rowtest

如何用MSTest进行RowTest?

我知道MSTest不支持RowTest和类似的testing。 MSTests用户做什么? 如果没有RowTest支持,生活怎么样? 我已经看到DataDriventestingfunction,但听起来像太多的开销,有没有第三方补丁或工具,让我在MSTest做RowTest类似的testing?

MSTest是否与NUnit的TestCase相当?

我发现NUnit中的TestCase特性作为快速指定testing参数非常有用,而不需要每个testing都有一个单独的方法。 MSTest中有类似的东西吗? [TestFixture] public class StringFormatUtilsTest { [TestCase("tttt", "")] [TestCase("", "")] [TestCase("t3a4b5", "345")] [TestCase("3&5*", "35")] [TestCase("123", "123")] public void StripNonNumeric(string before, string expected) { string actual = FormatUtils.StripNonNumeric(before); Assert.AreEqual(expected, actual); } }