public void NotFoundView_ReturnsNotFoundView() { ViewResult actual = controller.NotFoundView(); Assert.Equal(StatusCodes.Status404NotFound, controller.Response.StatusCode); Assert.Equal($"~/Views/{nameof(Home)}/{nameof(Home.NotFound)}.cshtml", actual.ViewName); }
protected ViewResult NotFoundView(AController controller) { controller.NotFoundView().Returns(new ViewResult()); return(controller.NotFoundView()); }