mvccontrib-testhelper Questions

3

Solved

I am trying to use the MvcContrib Test Helper to test a controller method in MVC3. The controller: public class HomeController : Controller { public ActionResult Index() { return View(); } }...
Philippi asked 10/12, 2010 at 14:11

1

Solved

As the title says, I'm looking for direction on how to properly test a controller extension. The extension renders a partial view which in turn I'm using within a JSONResult: public static string...

2

Solved

I have a sample ASP.NET MVC 3 web application that is following Jonathan McCracken's Test-Drive Asp.NET MVC (great book , by the way) and I have stumbled upon a problem. Note that I'm using MVCCont...
Vernation asked 1/1, 2011 at 23:9

1

I'm attempting to use the MvcContrib TestHelper fluent route testing API, but I'm seeing odd behavior. The .WithMethod(HttpVerb) extension method does not seem to be executing as expected. Here's m...
Largent asked 11/11, 2010 at 17:17

1

Solved

I'm trying to use code such as the following in my unit tests, /* Test setup code */ _routes = RouteTable.Routes; MvcApplication.RegisterRoutes(_routes); //set up the routes as they would be in ac...
Caducous asked 25/5, 2010 at 17:4

2

Solved

I am attempting to test the Index action of a controller. The action uses AutoMapper to map a domain Customer object to a view model TestCustomerForm. While this works I am concerned about the best...
Salzman asked 21/6, 2010 at 4:50

1

Solved

I'm trying to unit test my routes using the MvcContrib.TestHelper ShouldMapTo<TController>() extension method, but my tests fail with the following error message: failed: Method MvcContrib.T...
1

© 2022 - 2024 — McMap. All rights reserved.