Inheritance: IConstantMembershipCondition, IMembershipCondition
		public void Copy ()
		{
			DomainApplicationMembershipCondition domapp = new DomainApplicationMembershipCondition ();
			DomainApplicationMembershipCondition copy = (DomainApplicationMembershipCondition)domapp.Copy ();
			Assert.AreEqual (domapp, copy, "Equals");
			Assert.IsFalse (Object.ReferenceEquals (domapp, copy), "ReferenceEquals");
		}
		public void Equals ()
		{
			DomainApplicationMembershipCondition domapp = new DomainApplicationMembershipCondition ();
			Assert.IsFalse (domapp.Equals (null), "Equals(null)");
			DomainApplicationMembershipCondition g2 = new DomainApplicationMembershipCondition ();
			Assert.IsTrue (domapp.Equals (g2), "Equals(g2)");
			Assert.IsTrue (g2.Equals (domapp), "Equals(domapp)");
			Assert.IsFalse (domapp.Equals (new object ()), "Equals (object)");
		}
		public void Check ()
		{
			DomainApplicationMembershipCondition domapp = new DomainApplicationMembershipCondition ();
			Evidence e = null;
			Assert.IsFalse (domapp.Check (e), "Check (null)");
			e = new Evidence ();
			Assert.IsFalse (domapp.Check (e), "Check (empty)");
			e.AddHost (new Zone (SecurityZone.MyComputer));
			Assert.IsFalse (domapp.Check (e), "Check (zone)");

			// TODO - more (non failing ;) tests
		}
		public void FromXml ()
		{
			DomainApplicationMembershipCondition domapp = new DomainApplicationMembershipCondition ();
			SecurityElement se = domapp.ToXml ();
			domapp.FromXml (se);
		}
		public void FromXml_Null ()
		{
			DomainApplicationMembershipCondition domapp = new DomainApplicationMembershipCondition ();
			domapp.FromXml (null);
		}
		public void ToXml ()
		{
			DomainApplicationMembershipCondition domapp = new DomainApplicationMembershipCondition ();
			SecurityElement se = domapp.ToXml ();
			Assert.AreEqual ("IMembershipCondition", se.Tag, "Tag");
			Assert.IsTrue (se.Attribute ("class").StartsWith ("System.Security.Policy.DomainApplicationMembershipCondition"), "class");
			Assert.AreEqual ("1", se.Attribute ("version"), "version");
			Assert.AreEqual (se.ToString (), domapp.ToXml (null).ToString (), "ToXml(null)");
			Assert.AreEqual (se.ToString (), domapp.ToXml (PolicyLevel.CreateAppDomainLevel ()).ToString (), "ToXml(PolicyLevel)");
		}
		public void Constructor ()
		{
			DomainApplicationMembershipCondition domapp = new DomainApplicationMembershipCondition ();
			Assert.IsNotNull (domapp);
		}
		public void GetHashCode_ ()
		{
			DomainApplicationMembershipCondition domapp = new DomainApplicationMembershipCondition ();
			Assert.AreEqual (-1, domapp.GetHashCode ());
			DomainApplicationMembershipCondition copy = (DomainApplicationMembershipCondition)domapp.Copy ();
			Assert.AreEqual (domapp.GetHashCode (), copy.GetHashCode ());
		}
		public void ToString_ ()
		{
			DomainApplicationMembershipCondition domapp = new DomainApplicationMembershipCondition ();
			Assert.AreEqual ("Domain", domapp.ToString ());
		}
		public void FromXml_NoVersion ()
		{
			DomainApplicationMembershipCondition domapp = new DomainApplicationMembershipCondition ();
			SecurityElement se = domapp.ToXml ();

			SecurityElement w = new SecurityElement (se.Tag);
			w.AddAttribute ("class", se.Attribute ("class"));
			domapp.FromXml (w);
		}
		public void FromXml_SecurityElementNull ()
		{
			DomainApplicationMembershipCondition domapp = new DomainApplicationMembershipCondition ();
			domapp.FromXml (null, PolicyLevel.CreateAppDomainLevel ());
		}
		public void FromXml_InvalidVersion ()
		{
			DomainApplicationMembershipCondition domapp = new DomainApplicationMembershipCondition ();
			SecurityElement se = domapp.ToXml ();

			SecurityElement w = new SecurityElement (se.Tag);
			w.AddAttribute ("class", se.Attribute ("class"));
			w.AddAttribute ("version", "2");
			domapp.FromXml (w);
			// doesn't seems to care about the version number!
		}
		public void FromXml_NoClass ()
		{
			DomainApplicationMembershipCondition domapp = new DomainApplicationMembershipCondition ();
			SecurityElement se = domapp.ToXml ();

			SecurityElement w = new SecurityElement (se.Tag);
			w.AddAttribute ("version", se.Attribute ("version"));
			domapp.FromXml (w);
			// doesn't even care of the class attribute presence
		}
		public void FromXml_InvalidClass ()
		{
			DomainApplicationMembershipCondition domapp = new DomainApplicationMembershipCondition ();
			SecurityElement se = domapp.ToXml ();
			se.Attributes ["class"] = "Hello world";
			domapp.FromXml (se);
		}
		public void FromXml_WrongTagCase ()
		{
			DomainApplicationMembershipCondition domapp = new DomainApplicationMembershipCondition ();
			SecurityElement se = domapp.ToXml ();
			se.Tag = "IMEMBERSHIPCONDITION"; // instedomapp of IMembershipCondition
			domapp.FromXml (se);
		}
		public void FromXml_InvalidTag ()
		{
			DomainApplicationMembershipCondition domapp = new DomainApplicationMembershipCondition ();
			SecurityElement se = domapp.ToXml ();
			se.Tag = "IMonoship";
			domapp.FromXml (se);
		}