I\'m doing some simple MS unit tests on my standard, nothing special controller.
When I check the ViewName
proprty, from the returned ViewResult>
The viewname is set automatically by the framework. But when we unit test, we short-circuit the framework and there is nothing left to set the name.
So our actions need to set the viewname explicitly when we unit test. We could also check for null or empty if we really, really want to lean on the convention.