public void HttpUnauthorized_SetsStatusCode() { // Arrange var controller = new TestableController(); // Act var result = controller.HttpUnauthorized(); // Assert Assert.IsType<HttpUnauthorizedResult>(result); Assert.Equal(StatusCodes.Status401Unauthorized, result.StatusCode); }