c# - 人们在使用 Rhino Mocks 的 ASP.NET MVC 中将哪些资源用于 TDD?

标签 c# .net asp.net-mvc mocking rhino-mocks

是否知道或使用过 ASP.NET MVC 的 TTD 的良好资源,特别是 Rhino Mocks。

  1. 您更喜欢其他模拟框架吗?

我选择 Rhino Mocks 只是因为它看起来是最新的,而且从我读到的内容来看它非常有能力!

最佳答案

如果您还没有研究过,我建议您使用 MvcContrib's TestHelper .我试图模拟我的 Controller 和 View 以及 yadda yadda yadda,但发现自己难以理解,而 TestHelper 做了我需要它做的事情(设置 Controller 以便我可以测试它们)。 在内部,它在某些地方使用 Rhino Mocks,但如果这能让您的生活更轻松,您也可以轻松地使用 Moq。

关于c# - 人们在使用 Rhino Mocks 的 ASP.NET MVC 中将哪些资源用于 TDD?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1206423/

相关文章:

c# - 连接到 Firebird 3 的 C# 程序中的 "connection rejected by remote interface"

c# - 是否有可用于 .NET 的类似数据库的持久层?

c# - 应用程序启动时 bundle 中的异常

asp.net - 带有控制台应用程序的 Windows 调度程序 API 与带有 asp.net mvc 的 .net 调度程序工具,用于在我的 asp.net MVC 中执行长时间运行的进程

asp.net-mvc - HTML.DropDownList 不尊重预选值

c# - Azure 搜索服务顶部值超过 1000

c# - Entity Framework 4.1 DbContext 生成器问题

.net - EndpointNotFoundException 'Could not connect' 因为 'the target machine actively refused it' 通过 Fiddler 连接

c# - 改为使用参数值在 nhibernate 中打印查询字符串?

c# - 温莎容器生活方式问题