1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 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);
}
}
}
|