T13 Unit Testing andTest Driven Development TDD for Mere Mortals


1:30pm - 2:45pm

Level: Intermediate to Advanced


Benjamin Day

Consultant & Trainer

Benjamin Day Consulting, Inc.

Unit Testing and Test-Driven Development (TDD) arguably mean the same thing. They both describe a way of developing software so you always know whether or not it's working. You write little chunks of code (unit tests) to verify objects and methods in your application's code and it helps ensure you have proof your code works. It also makes your code easier to maintain and easier to refactor. Plus, while it might not feel like it right away, writing using tests makes your development process go a lot faster.

This session will cover what unit testing and TDD are all about, why you should care, and how to do it with C# and ASP.NET MVC. Along the way, you'll also hear about "designing for testability" and some really helpful testability design patterns like the Strategy, Repository, and Adapter patterns.

You will learn:

  • Why write unit tests?
  • How to write unit tests?
  • Unit tests for user interface code