Beispiel #1
0
        public void ResetAccessRuleCausesExactlyOneModifyAccessCall()
        {
            TestSecurity       security = new TestSecurity(false);
            SecurityIdentifier sid      = new SecurityIdentifier("WD");

            security.ResetAccessRuleTest(new TestAccessRule <TestRights> (sid, TestRights.One,
                                                                          AccessControlType.Allow));
            Assert.AreEqual(1, security.modify_access_called_count);
        }