CardShopTest.AuthTests.AuthorizeUserTest.TestAuthCoreNegative C# (CSharp) Метод

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

private TestAuthCoreNegative ( ) : void
Результат void
        public void TestAuthCoreNegative()
        {
            auth.Setup(a => a.HasRole(It.IsAny<Role[]>())).Returns(false);
            Assert.IsFalse((bool)authCore.GetType().InvokeMember("AuthorizeCore",
                BindingFlags.InvokeMethod | BindingFlags.NonPublic | BindingFlags.Instance,
                null,
                authCore,
                new object[]{null}));
        }