public void Default ()
		{
			MessageQueuePermissionAttribute a = new MessageQueuePermissionAttribute (SecurityAction.Assert);
			Assert.AreEqual (a.ToString (), a.TypeId.ToString (), "TypeId");
			Assert.IsFalse (a.Unrestricted, "Unrestricted");
			Assert.IsNull (a.Category, "Category");
			Assert.IsNull (a.Label, "Label");
			Assert.IsNull (a.MachineName, "MachineName");
			Assert.IsNull (a.Path, "Path");
			Assert.AreEqual (MessageQueuePermissionAccess.None, a.PermissionAccess, "PermissionAccess");

			a.MachineName = "localhost";
			MessageQueuePermission sp = (MessageQueuePermission)a.CreatePermission ();
			Assert.IsFalse (sp.IsUnrestricted (), "IsUnrestricted");
		}
		public void Unrestricted ()
		{
			MessageQueuePermissionAttribute a = new MessageQueuePermissionAttribute (SecurityAction.Assert);
			a.MachineName = "localhost";
			a.Unrestricted = true;
			MessageQueuePermission mqp = (MessageQueuePermission)a.CreatePermission ();
			Assert.IsTrue (mqp.IsUnrestricted (), "IsUnrestricted");

			a.Unrestricted = false;
			mqp = (MessageQueuePermission)a.CreatePermission ();
			Assert.IsFalse (mqp.IsUnrestricted (), "!IsUnrestricted");
		}
		public void CreatePermission_WithoutMachineName ()
		{
			MessageQueuePermissionAttribute a = new MessageQueuePermissionAttribute (SecurityAction.Assert);
			a.CreatePermission ();
		}