我选择了这两位作为主要候选人。我的想法是:
developers.
你认为我应该赌哪一个?
发布于 2010-01-18 21:32:46
NUnit更广泛,MbUnit拥有最多的特性,但是MSTest背后有更多的人力资源。检查这个问题:NUnit vs. MbUnit vs. MSTest vs. xUnit.net
发布于 2010-01-08 04:43:59
我喜欢MbUnit,因为它通过属性支持参数化测试。所以你可以这样做:
[Test]
[Row(2,1,2)]
[Row(4,3,1)]
[Row(ExpectedException(typeof(DivideByZeroException)))]
void TestIntDivision(int numerator, int denominator, int result)
{
Assert.AreEqual(result, numerator/denominator);
}
发布于 2010-01-08 03:40:36
Microsoft单元测试框架与Visual有某种联系。这既是有利的,也是不利的。优点是您可以轻松地从Visual中运行测试,缺点是忘记了Mono支持。值得注意的是,VS2010将支持第三方单元测试框架。
https://stackoverflow.com/questions/2025308
复制相似问题