Installation
You can install this library using NuGet into your Test Library; it will automatically reference System.Web and System.Web.Mvc (via NuGet packages, sorry it also installs a heap of other dependencies - it would be cool if Microsoft provided a package with just the MVC dll!) for you.
If you are using ASP.NET MVC 5 (.NET 4.5+) then:
Install-Package TestStack.FluentMVCTesting
If you are using ASP.NET MVC 4 (.NET 4.0+) then:
Install-Package TestStack.FluentMVCTesting.Mvc4
If you are using ASP.NET MVC 3 (.NET 4.0+) then:
Install-Package TestStack.FluentMVCTesting.Mvc3
Known issues
If you get the following exception:
System.Security.VerificationException : Method FluentMVCTesting.ControllerExtensions.WithCallTo: type argument 'MyApp.Controllers.MyController' violates the constraint of type parameter 'T'.
It means you are referencing a version of System.Web.Mvc that isn't compatible with the one that was used to build the dll that was generated for the NuGet package. Ensure that you are using the correct package for your version of MVC and that you are using the AspNetMvc packages on nuget.org rather than the dll from the GAC.
Updated less than a minute ago