FromXml() public method

public FromXml ( SecurityElement e ) : void
e SecurityElement
return void
		public void FromXml_Null ()
		{
			DomainApplicationMembershipCondition domapp = new DomainApplicationMembershipCondition ();
			domapp.FromXml (null);
		}
		public void FromXml ()
		{
			DomainApplicationMembershipCondition domapp = new DomainApplicationMembershipCondition ();
			SecurityElement se = domapp.ToXml ();
			domapp.FromXml (se);
		}
		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);
		}