Ejemplo n.º 1
0
        public void IgnoresResetOnAuditAndReturnsTrue()
        {
            bool         modifiedRet, modifiedOut;
            TestSecurity security = new TestSecurity();

            SecurityIdentifier sid  = new SecurityIdentifier("WD");
            TestAuditRule      rule = new TestAuditRule
                                          (sid, 1, false, InheritanceFlags.None, PropagationFlags.None,
                                          Guid.Empty, Guid.Empty, AuditFlags.Success);

            modifiedRet = security.ModifyAuditRule(AccessControlModification.Reset,
                                                   rule, out modifiedOut);
            Assert.IsTrue(modifiedRet);
        }
		public void IgnoresResetOnAuditAndReturnsTrue ()
		{
			bool modifiedRet, modifiedOut;
			TestSecurity security = new TestSecurity ();

			SecurityIdentifier sid = new SecurityIdentifier ("WD");
			TestAuditRule rule = new TestAuditRule
				(sid, 1, false, InheritanceFlags.None, PropagationFlags.None,
				 Guid.Empty, Guid.Empty, AuditFlags.Success);

			modifiedRet = security.ModifyAuditRule (AccessControlModification.Reset,
			                           		rule, out modifiedOut);
			Assert.IsTrue (modifiedRet);
		}