public void StatusCodes() { ExampleController controller = new ExampleController(); StatusCodeResult result = controller.Index6(); Assert.Equal(404, result.StatusCode); }