HI Freinds请在NUnit上分享您的观点 [英] HI Freinds Please Share Your Views on NUnit

查看:103
本文介绍了HI Freinds请在NUnit上分享您的观点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想知道NUnit的优缺点.

http://www.nunit.org/index.php?p=quickStart&r=2.4 [ ^ ]

此链接用于快速入门,但我没有任何好点和坏点

请告诉我,您中是否有人有NUnit的想法


在此先感谢:thumbsup :: thumbsup:

Hi
I want to know Good Point and Bad Points of NUnit.

http://www.nunit.org/index.php?p=quickStart&r=2.4[^]

this link is for Quick start but i am not getting any good point and bad point

Please tell me know if you anyone of them have the idea of NUnit


Thanks in advance:thumbsup::thumbsup:

推荐答案

尽管NUnit是一个出色的框架,但对我而言,主要缺点之一是它没有本地语言内置的模拟对象支持-如果要支持模拟,则必须使用单独的框架.

对测试线程应用程序的支持也可能更容易实现-如果您正在测试异步方法,则必须在有效的单独方法中编写结果处理程序变得非常麻烦(尽管您可以使用委托来解决这个特定问题).

it its 最大的优点是,开始开发测试非常容易.这必须是一件好事.
While NUnit is an excellent framework, one of the main drawbacks for me is that it doesn''t have a native mock objects support built in - you have to use a separate framework if you want mocking support.

Support for testing threaded applications could be easier to implement as well - if you''re testing an asynchronous method, it becomes quite cumbersome to have to write the result handler in what''s effectively a separate method (although you can use delegates to get around this particular problem).

Possibly it''s its biggest plus point is that it''s extremely easy to get started developing tests in. That has to be a good thing.


NUnit非常出色,尤其是与Rhino Mocks结合使用时.它的主要缺点是Microsoft已发布了自己的测试框架,该框架与Visual Studio尤其是Visual Studio Team System集成得更好.

我已经使用了这两个框架,并发现NUnit更易于使用,但我优先使用Microsoft的,因为集成方面比IMO更重要.
NUnit is excellent, especially in conjunction with Rhino Mocks. It''s main drawback is that Microsoft has released its own testing framework, which is far better integrated with Visual Studio and especially Visual Studio Team System.

I''ve worked with both frameworks and found NUnit to be clearer to work with, but I use Microsoft''s in preference because the integration aspects outweigh this as a factor IMO.


NUnit是一个非常好的框架.
拥有约80%到90%的测试覆盖率实际上可以帮助赢得客户.

但是,您将需要类似Rhino的NUnit模拟程序来运行测试.否则,您可以构建自己的模拟对象.
NUnit is a very good framework to use.
Boasting about 80 to 90% test coverage can actually help win a client.

You would need something like Rhino mock with NUnit, however, to run your tests. Or else, you could build your own mock objects.


这篇关于HI Freinds请在NUnit上分享您的观点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆