Union() public méthode

public Union ( IPermission target ) : IPermission
target IPermission
Résultat IPermission
		public void Union_DifferentPermissions ()
		{
			GacIdentityPermission a = new GacIdentityPermission (PermissionState.None);
			SecurityPermission b = new SecurityPermission (PermissionState.None);
			a.Union (b);
		}
		public void Union ()
		{
			GacIdentityPermission gip = new GacIdentityPermission ();

			GacIdentityPermission union = (GacIdentityPermission)gip.Union (null);
			Assert.IsNotNull (union, "gip U null");

			GacIdentityPermission empty = new GacIdentityPermission (PermissionState.None);
			union = (GacIdentityPermission)gip.Union (empty);
			Assert.IsNotNull (union, "gip U empty");

			union = (GacIdentityPermission)gip.Union (gip);
			Assert.IsNotNull (union, "gip U gip");

			// note: can't be tested with PermissionState.Unrestricted
		}