As no one has answered - I updated my ASP MVC to ASP MVC 5 and the tests then succeeded. I have a gut feeling that my test project was using ASP MVC 5, but the project containing the controller was running ASP MVC 4, and because they were from different binaries, the controller class could return a ViewResult
in the shadow of ActionResult
, but the test project could not convert from ViewResult
to ActionResult
because it's understanding of ViewResult
was different.
Although this seems folly because one would assume I would get a build error in this case.
oh well, upgrading fixed it.