Union() public method

public Union ( IPermission target ) : IPermission
target IPermission
return IPermission
Ejemplo n.º 1
0
		public void Union_null ()
		{
			ConfigurationPermission p1 = new ConfigurationPermission (PermissionState.Unrestricted);

			IPermission p3 = p1.Union (null);

			Assert.AreEqual (typeof (ConfigurationPermission), p3.GetType(), "A1");

			Assert.IsTrue (((ConfigurationPermission)p3).IsUnrestricted(), "A2");
		}
Ejemplo n.º 2
0
		public void Union_wrongtypee ()
		{
			ConfigurationPermission p1 = new ConfigurationPermission (PermissionState.Unrestricted);

			IPermission p3 = p1.Union (new StrongNameIdentityPermission (PermissionState.Unrestricted));
		}