Exemplo n.º 1
0
            public void Should_render_a_PageNotFound_view_and_append_standard_error_message_to_description()
            {
                PageNotFoundViewModel pageNotFoundViewModel = new PageNotFoundViewModel();

                Assert.AreEqual("Requested Url not found",
                                _pageNotFoundController.Index(pageNotFoundViewModel).Description);
            }
 public void should_set_the_response_status_code()
 {
     _controller.Index(null);
     _service.Status.ShouldEqual(404);
 }