IsSubsetOf() public méthode

public IsSubsetOf ( IPermission target ) : bool
target IPermission
Résultat bool
		public void IsSubsetOf_DifferentPermissions ()
		{
			GacIdentityPermission a = new GacIdentityPermission (PermissionState.None);
			SecurityPermission b = new SecurityPermission (PermissionState.None);
			a.IsSubsetOf (b);
		}
		public void IsSubsetOf ()
		{
			GacIdentityPermission gip = new GacIdentityPermission ();
			Assert.IsFalse (gip.IsSubsetOf (null), "gip.IsSubsetOf (null)");

			GacIdentityPermission empty = new GacIdentityPermission (PermissionState.None);
			Assert.IsFalse (empty.IsSubsetOf (null), "empty.IsSubsetOf (null)");
		}