A resource for learning TDD with asp.net MVC 3

Is it possible to make TDD on asp.net MVC 3? And if so, what are some good online resources? As far as I know, MVC 3 is the latest version that is missing. But most tdd articles I google for MVC 1. Even the two books that I could find in TDDing in MVC are 1.0

Aspress MVC Test Driven Development

Asp.net MVC test drive

Even the official Microsoft website has an article stating that MVC TDD walkthrough for MVC 2.0.

This starts to make me think that TDD is simply not practical in asp.net MVC or that it is not supported.

+7
source share
5 answers

This is the best resource I know for training TDD:

Roy Osherow - The Art of Testing Units

After reading this and reading the following MVC3 book:

Sanderson and Freeman - Pro ASP.NET MVC3 Framework

With this, you will know enough to get started with Test Driven Development in MVC3.

+5
source

Most TDD concepts are fairly general, so TDD resources for C # programming in general must go a long way.

For an MVC solution that you can play with you, you can watch https://github.com/tekpub/mvc3 (I also recommend videos, but they are not free).

Brad Wilson has many advantages in testing and MVC ( http://bradwilson.typepad.com/blog/2010/07/testing-routing-and-url-generation-in-aspnet-mvc.html , for example).

This video is more about application architecture, but it also does some tests.

+2
source

It appears that the following resources have not yet been published. TDD with ASP.NET MVC 3, Moq and injection dependency and a nice discussion on stackoverflow on this TDD and test data

+1
source

Try this_link for asp.net MVC

Now click this_link for TDD

These two links help me a lot.

Hope this helps you.

+1
source

Testability has been a goal from the start. I suspect that the reason you do not see “TDD with MVC 3” as a dedicated topic is that the methods have not changed since v1.0. I describe the actions of the testing control unit with nUnit in the introductory video of my MVC 3 course on asp.net.

0
source

All Articles