Beispiel #1
0
        public void FromXml_WrongTagCase()
        {
            NonAbstractDBDataPermission elp = new NonAbstractDBDataPermission(PermissionState.None);
            SecurityElement             se  = elp.ToXml();

            se.Tag = "IPERMISSION"; // instead of IPermission
            elp.FromXml(se);
        }
Beispiel #2
0
        public void FromXml_WrongTag()
        {
            NonAbstractDBDataPermission elp = new NonAbstractDBDataPermission(PermissionState.None);
            SecurityElement             se  = elp.ToXml();

            se.Tag = "IMono";
            elp.FromXml(se);
        }
Beispiel #3
0
        public void FromXml_WrongVersion()
        {
            NonAbstractDBDataPermission elp = new NonAbstractDBDataPermission(PermissionState.None);
            SecurityElement             se  = elp.ToXml();

            se.Attributes.Remove("version");
            se.Attributes.Add("version", "2");
            elp.FromXml(se);
        }
Beispiel #4
0
        public void FromXml_NoVersion()
        {
            NonAbstractDBDataPermission elp = new NonAbstractDBDataPermission(PermissionState.None);
            SecurityElement             se  = elp.ToXml();

            SecurityElement w = new SecurityElement(se.Tag);

            w.AddAttribute("class", se.Attribute("class"));
            elp.FromXml(w);
        }
Beispiel #5
0
        public void FromXml_NoClass()
        {
            NonAbstractDBDataPermission elp = new NonAbstractDBDataPermission(PermissionState.None);
            SecurityElement             se  = elp.ToXml();

            SecurityElement w = new SecurityElement(se.Tag);

            w.AddAttribute("version", se.Attribute("version"));
            elp.FromXml(w);
            // doesn't even care of the class attribute presence
        }
Beispiel #6
0
        public void FromXml_WrongClass()
        {
            NonAbstractDBDataPermission elp = new NonAbstractDBDataPermission(PermissionState.None);
            SecurityElement             se  = elp.ToXml();

            SecurityElement w = new SecurityElement(se.Tag);

            w.AddAttribute("class", "Wrong" + se.Attribute("class"));
            w.AddAttribute("version", se.Attribute("version"));
            elp.FromXml(w);
            // doesn't care of the class name at that stage
            // anyway the class has already be created so...
        }
Beispiel #7
0
        public void FromXml_Null()
        {
            NonAbstractDBDataPermission elp = new NonAbstractDBDataPermission(PermissionState.None);

            elp.FromXml(null);
        }
		public void FromXml_WrongVersion ()
		{
			NonAbstractDBDataPermission elp = new NonAbstractDBDataPermission (PermissionState.None);
			SecurityElement se = elp.ToXml ();
			se.Attributes.Remove ("version");
			se.Attributes.Add ("version", "2");
			elp.FromXml (se);
		}
		public void FromXml_NoVersion ()
		{
			NonAbstractDBDataPermission elp = new NonAbstractDBDataPermission (PermissionState.None);
			SecurityElement se = elp.ToXml ();

			SecurityElement w = new SecurityElement (se.Tag);
			w.AddAttribute ("class", se.Attribute ("class"));
			elp.FromXml (w);
		}
Beispiel #10
0
		public void FromXml_NoClass ()
		{
			NonAbstractDBDataPermission elp = new NonAbstractDBDataPermission (PermissionState.None);
			SecurityElement se = elp.ToXml ();

			SecurityElement w = new SecurityElement (se.Tag);
			w.AddAttribute ("version", se.Attribute ("version"));
			elp.FromXml (w);
			// doesn't even care of the class attribute presence
		}
Beispiel #11
0
		public void FromXml_WrongClass ()
		{
			NonAbstractDBDataPermission elp = new NonAbstractDBDataPermission (PermissionState.None);
			SecurityElement se = elp.ToXml ();

			SecurityElement w = new SecurityElement (se.Tag);
			w.AddAttribute ("class", "Wrong" + se.Attribute ("class"));
			w.AddAttribute ("version", se.Attribute ("version"));
			elp.FromXml (w);
			// doesn't care of the class name at that stage
			// anyway the class has already be created so...
		}
Beispiel #12
0
		public void FromXml_WrongTagCase ()
		{
			NonAbstractDBDataPermission elp = new NonAbstractDBDataPermission (PermissionState.None);
			SecurityElement se = elp.ToXml ();
			se.Tag = "IPERMISSION"; // instead of IPermission
			elp.FromXml (se);
		}
Beispiel #13
0
		public void FromXml_WrongTag ()
		{
			NonAbstractDBDataPermission elp = new NonAbstractDBDataPermission (PermissionState.None);
			SecurityElement se = elp.ToXml ();
			se.Tag = "IMono";
			elp.FromXml (se);
		}
Beispiel #14
0
		public void FromXml_Null ()
		{
			NonAbstractDBDataPermission elp = new NonAbstractDBDataPermission (PermissionState.None);
			elp.FromXml (null);
		}