Chapter 3. Unit Testing and Test Driven Development

With some of the fundamentals of software design and unit testing covered in Chapter 2, you can now move on and start applying these concepts. This chapter looks at how to start writing unit tests and developing in a Test Driven Development fashion when working with ASP.NET. First we'll cover ASP.NET WebForms, and how you can write unit tests against this framework. We will then take a look at the new ASP.NET MVC Framework, which has been designed with testability in mind and solves some of the problems encountered when using ASP.NET WebForms.

By the end of this chapter you should have a good understanding of how to start building your ASP.NET web applications using Test Driven Development techniques.

Get Testing ASP.NET Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.