Catbert4.Tests.Controllers.UserManagementControllerTests.UserManagementControllerTests.TestControllerMethodFindUserContainsExpectedAttributes C# (CSharp) Метод

TestControllerMethodFindUserContainsExpectedAttributes() приватный Метод

private TestControllerMethodFindUserContainsExpectedAttributes ( ) : void
Результат void
        public void TestControllerMethodFindUserContainsExpectedAttributes()
        {
            #region Arrange
            var controllerClass = ControllerClass;
            var controllerMethod = controllerClass.GetMethod("FindUser");
            #endregion Arrange

            #region Act
            //var expectedAttribute = controllerMethod.GetCustomAttributes(true).OfType<HandleTransactionsManuallyAttribute>();
            var allAttributes = controllerMethod.GetCustomAttributes(true);
            #endregion Act

            #region Assert
            //Assert.AreEqual(1, expectedAttribute.Count(), "HandleTransactionsManuallyAttribute not found");
            Assert.AreEqual(0, allAttributes.Count(), "More than expected custom attributes found.");
            #endregion Assert
        }
UserManagementControllerTests