Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        protected ViewResult NotFoundView(AController controller)
        {
            controller.NotFoundView().Returns(new ViewResult());

            return(controller.NotFoundView());
        }