public void TestControllerMethodRemovePermissionContainsExpectedAttributes()
{
#region Arrange
var controllerClass = ControllerClass;
var controllerMethod = controllerClass.GetMethod("RemovePermission");
#endregion Arrange
#region Act
var expectedAttribute = controllerMethod.GetCustomAttributes(true).OfType<HttpPostAttribute>();
var allAttributes = controllerMethod.GetCustomAttributes(true);
#endregion Act
#region Assert
Assert.AreEqual(1, expectedAttribute.Count(), "HttpPostAttribute not found");
Assert.AreEqual(1, allAttributes.Count(), "More than expected custom attributes found.");
#endregion Assert
}