public void LayoutController_View_InvalidIdReturnsRedirectToIndex() { ActionResult actionResult = _layoutController.Show(null); actionResult.As <RedirectToRouteResult>().RouteValues["action"].Should().Be("Index"); }