什么是可以使用的最好的开源模拟框架 [英] What is the best opensource mocking framework that can be used

查看:92
本文介绍了什么是可以使用的最好的开源模拟框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我开始为我的网络应用程序编写单元测试。我很困惑为它选择最好的模拟框架。我在我的应用程序中使用DevExpress控件,不幸的是他们没有模拟框架。我可以使用的最好的模拟框架是什么?



请建议。





谢谢,

Surya

Hello,

I am starting to write unit tests for my web application. I am confused in choosing the best mocking framework for it. I am using DevExpress controls all through my application and unfortunately they don't have a mocking framework. What is the best mocking framework that i can use ?

Please suggest.


Thanks,
Surya

推荐答案

认定此链接非常有用 -

http://stackoverflow.com/questions/9677445/mock-framework-vs-ms-fakes-框架 [ ^ ]
Found this link to be very helpful -
http://stackoverflow.com/questions/9677445/mock-framework-vs-ms-fakes-frameworks[^]


大多数人使用moq或rhinomock。 Moq可能对我有用,主要区别在于语法和对你来说更有意义的东西。更重要的是,你选择哪一个是你完全掌握如何使用它来模拟各种事物,它们真的非常多。
Most people use moq or rhinomock. Moq probably edges it for me, the main difference is in the syntaxes and what seems to make more sense to you. What's more important that which one you choose is that you fully get to grips with how you use it to mock various things, they're all much of a muchness really.


这篇关于什么是可以使用的最好的开源模拟框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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