Creating Unit Tests for ASP.NET MVC Applications
Learn how to create unit tests for controller actions. In this tutorial, Stephen Walther demonstrates how to test whether a controller action returns a particular view, returns a particular set of data, or returns a different type of action result. Source (C#)Source (VB)