ASP.NET MVC 3: Using HttpNotFoundResult in controller tests

added by gpeipman
8/15/2010 11:50:40 AM

1 Kicks, 130 Views

Lately I blogged about HttpNotFoundResult and HttpStatusCodeResult action results that come with ASP.NET MVC 3. These results are ideal for controller tests as we don’t have to mess with HttpContext and Response objects anymore. In this posting I will show you how to use HttpNotFoundResult in controller tests to check if errors are given correctly to user.


0 comments