推荐单元测试书为一个ASP.NET MVC环境 [英] Recommended Unit Testing Book for an ASP.NET MVC environment

查看:169
本文介绍了推荐单元测试书为一个ASP.NET MVC环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个良好的单元测试书,与ASP.NET MVC使用的建议。根据你的书实际上阅读和使用(圣经),你有什么建议?

I need recommendations on a good Unit Testing book for use with ASP.NET MVC. Based on books you have actually read and use (your bible), what do you recommend?

推荐答案

似乎所有的新的ASP.NET MVC书有单元测试至少有一个章节。

It seems that all of the newer ASP.NET MVC books have at least one chapter on unit testing.

我最近完成了史蒂夫·桑德森的书的临ASP.NET MVC框架,我认为作者着重强调单元测试。这本书不会对单元测试专用一章,但几乎每章都有相关章节或致电超时/与测试路由(入站和出站),控制器,存储库,模型粘合剂等。如果我没记错的侧边栏处理他使​​用 NUnit的并的起订量非常详细的库。您可以$他对谷歌图书书籍的对$ PVIEW部分:临ASP.NET MVC框架或从订单它一个preSS (他们的电子图书价格合理,但与密码是您的电子邮件地址保护排序对我来说是痛苦的),或从亚马逊

I have recently completed Steve Sanderson's book Pro ASP.NET MVC Framework and I thought the author placed a strong emphasis on unit testing. The book doesn't have a dedicated chapter on unit testing, but just about every chapter has relevant sections or call-outs/sidebars that deal with testing routing (inbound and outbound), controllers, repositories, model binders, etc. If I remember he uses the nUnit and Moq libraries in great detail. You can preview parts of his book on Google Books : Pro ASP.NET MVC Framework or order it from Apress (their eBooks are reasonably priced but password protected with your email address which is sort of a pain for me) or from Amazon.

我还没有看到一本书单靠ASP.NET MVC单元测试的任何计划,所以你将可能要坚持到博客或任何内容,您可以在即将到来的ASP.NET MVC的书找到(就像我说的,似乎所有的人包括单元测试在不同程度上)。

I haven't seen any plans for a book solely on ASP.NET MVC unit testing, so you're going to probably have to stick to blogs or with whatever content you can find in the upcoming ASP.NET MVC books (like I said, it seems that all of them cover unit testing to varying degrees).

一些我知道的书:

Wrox的:开始的ASP.NET MVC 1.0 ---对测试样本章节下载<一个href=\"http://p2p.wrox.com/book-beginning-asp-net-mvc-1-0-isbn-978-0-470-43399-7/74180-free-chapter-9-testing-asp-net-mvc-applications-$p$pview.html\">here.

Wrox: Beginning ASP.NET MVC 1.0 --- Has a sample chapter on testing for download here.

曼宁:ASP.NET MVC在行动--- 不会对测试一个明确的篇章,但如果你下载 codeCampServer 参考应用程序,你会发现一吨单元,集成,以及回归测试。

Manning: ASP.NET MVC in Action --- Doesn't have an explicit chapter on testing, but if you download the CodeCampServer reference application you will find a ton of unit, integration, and regression tests.

<一个href=\"http://www.wrox.com/WileyCDA/WroxTitle/Professional-ASP-NET-MVC-1-0.productCd-0470384611.html\">Wrox:专业ASP.NET MVC 1.0 ---先后在单元测试NerdDinner范例示例应用程序和测试一个章节。测试大师罗伊Osherove(参数单元测试艺术的作者)回顾了NerdDinner范例测试<一href=\"http://weblogs.asp.net/rosherove/archive/2009/03/20/test-review-1-nerddinner.aspx\">here.

Wrox: Professional ASP.NET MVC 1.0 --- Has unit tests in the NerdDinner sample application and a dedicated chapter on testing. Testing Guru Roy Osherove (author of The Art of Unit Testing) reviews the NerdDinner tests here.

年底Packt:ASP.NET MVC 1.0快速 - - 对单元测试的一章,作者有pretty好的博客,讨论有关各种ASP.NET MVC的问题,包括<一个href=\"http://blog.maartenballiauw.be/post/2008/03/19/ASPNET-MVC-Testing-issues-Q-and-A.aspx\">testing.

Packt: ASP.NET MVC 1.0 Quickly --- Has a chapter on unit testing and the author has a pretty good blog that talks about various ASP.NET MVC issues including testing.

萨姆斯:ASP.NET MVC框架偷跑 ---浏览的Table ,在书中揭示专用于测试内容相当数量(嘲讽,TDD等)。您可以从即将出版和其他ASP.NET MVC和TDD相关的帖子检查出样本内容作者的博客

Sams: ASP.NET MVC Framework Unleashed --- Browsing the Table of Contents for the book reveals a fair amount of content dedicated to testing (mocking, TDD, etc). You can check out the author's blog for sample content from the upcoming book and other ASP.NET MVC and TDD related posts.

这篇关于推荐单元测试书为一个ASP.NET MVC环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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