Exemple #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);
        }
Exemple #2
0
        protected ViewResult NotFoundView(AController controller)
        {
            controller.NotFoundView().Returns(new ViewResult());

            return(controller.NotFoundView());
        }