public void ForbiddenActionMethod() { ExampleController controller = new ExampleController(); StatusCodeResult result = controller.Index4(); Assert.Equal(403, result.StatusCode); }