TDD in ASP.NET MVC: where to start?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-07 07:20:52

问题


I'd like to start with TDD in ASP.NET NVC. Getting links pointing me to some ressources for absolute beginners on that matter would be helpfull. (why, when, how to write tests).

Also, some advices on how to tackle the subject are welcomed.

Thanks for helping


回答1:


Phil Haack: http://haacked.com/archive/2007/12/07/tdd-and-dependency-injection-with-asp.net-mvc.aspx

CodeBetter: http://codebetter.com/blogs/jeremy.miller/archive/2006/02/01/137457.aspx

4 Guys from Rolla: http://www.4guysfromrolla.com/articles/011905-1.aspx

etc. etc.




回答2:


Check out:

http://stephenwalther.com/blog/category/9.aspx

He usually has some good stuff that is simple to grasp for beginners.




回答3:


I think TDD is an involved enough subject that to start you should pick up a nice heavy book, rather than try to piece together the information from blogs. I scraped by for a bit without really studying the material, but I never really had the aha moment until I read this book: http://xunitpatterns.com/. So I would recommend that book.




回答4:


Here is a walk-through of Test Driven Development with ASP.NET MVC and a basic intro Introduction to Test Driven Design (TDD). I would also suggest searching for TDD and Behaviour Driven Development (BDD) content on InfoQ and Google Lectures on YouTube.




回答5:


I found the book

ASP.NET MVC 1.0 Test Driven Development: Problem - Design - Solution

by Emad Ibrahim to be very well-written and takes a very easy to follow approach to doing TDD using ASP.Net MVC.

I think that is easier to get started with than to pull your information from various (however brilliant) sources.



来源:https://stackoverflow.com/questions/2717465/tdd-in-asp-net-mvc-where-to-start

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!