开发者

Is there a way to RowTest using MSpec?

Whilst practising the Check Out Kata with MSpec I wanted to remove the duplication in my specs the same way that you would add a RowTest in NUnit, but I couldn't figure out how.

Has anyone tried anything similiar开发者_开发技巧, or would you consider such an approach an anti-pattern in an Context/Observation framework such as MSpec?


MSpec doesn't support the RowTest concept known from other frameworks like NUnit and MbUnit.

There's limited support for reusing specifications (the Its) with behaviors, i.e. Behaves_like<TBehavior> but that's not entirely the same as a RowTest.

I generally discourage forcing MSpec to handle lots of different data points as you need to with your code kata. There are better tools out there to handle such situations, like the one you mentioned (NUnit).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜