Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@ -0,0 +1,25 @@
// MutexAccessRuleTest - NUnit Test Cases for MutexAccessRule
//
// Authors:
// James Bellinger (jfb@zer7.com)
using System;
using System.Security.AccessControl;
using System.Security.Principal;
using NUnit.Framework;
namespace MonoTests.System.Security.AccessControl
{
[TestFixture]
public class MutexAccessRuleTest
{
[Test]
public void ConstructsWithoutCrashingAndRemembersRights ()
{
SecurityIdentifier id = new SecurityIdentifier (WellKnownSidType.WorldSid, null);
MutexAccessRule rule = new MutexAccessRule (id, MutexRights.FullControl, AccessControlType.Allow);
Assert.AreEqual (rule.MutexRights, MutexRights.FullControl);
}
}
}