开发者

Is mspec better with or without nunit?

I've seen mspec used with nunit on some blogs and discussions. In fact, most of the examples on the web that I've seen demonstrate mspec with some kind of nunit dependancy or integration. My team is attempting to use mspec without nunit on a new ASP.NET MVC2 project. We're not开发者_开发技巧 at the spec-writing stage yet, so I can't tell what is better. What it your experience with this? Are there benefits to using mspec with nunit? Without?


MSpec does not depend in any way on NUnit or xUnit. As such you can use MSpec on its own, as it has it's own runners and assertion methods. The blog posts you saw very likely used the "old" assertion library that were dependent on either NUnit or xUnit. This dependency has been removed in late 2009.

What you can do, although it's neither required nor do I see any benefit in doing it, is to use NUnit's assertion library (Assert.IsTrue et al.) together with MSpec.


since you not have started yet, take a look at SpecFlow, it integrates nicely with MSTest and Visual Studio....

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜