What book on TDD for C# with treatment of Mocks(什么关于 C# 的 TDD 和 Mocks 处理的书)
问题描述
您能否推荐一本关于 C# 的单元测试和 TDD 的书,其中至少对 Mock 对象进行了一些处理?
Can you recoment a book on on Unit Testing and TDD for C# with at least some treatment of Mock Objects?
我看过这个问题,但似乎没有提到嘲笑.
I have seen this question but it does not seem to mention mocking.
推荐答案
单元测试的艺术:使用 .NET 中的示例 作者:Roy Osherove (亚马逊页面, 官方网站) 听起来像你要找的东西.他用一章介绍存根和模拟对象的概念(使用自己动手"的方法),然后用第二章介绍使用模拟对象框架,特别是 Rhino Mocks.对测试驱动开发的重视程度稍低,但可以从其他来源获得大量有关 TDD 的信息,而且 TDD 并不是特定于语言的.
The Art of Unit Testing: With Examples in .NET by Roy Osherove (Amazon Page, Official Site) sounds like what you're looking for. He devotes one chapter introducing the concepts of stub and mock objects (using a "roll-your-own" approach), and then a second chapter on using mock object frameworks, particularly Rhino Mocks. There is somewhat less emphasis on Test-Driven Development, but there is quite a lot of information about TDD available from other sources, and TDD isn't all that language-specific.
这篇关于什么关于 C# 的 TDD 和 Mocks 处理的书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:什么关于 C# 的 TDD 和 Mocks 处理的书


基础教程推荐
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01