diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2004-09-01 16:09:34 +0400 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2004-09-01 16:09:34 +0400 |
commit | 8f0a4478d2e7404de0eaf5e6c3c3e137689a53d1 (patch) | |
tree | 08dd605af6f6ada7dbebb6db8796a79e1fbcfeea /mcs/class | |
parent | c621c39499583a03464cd77b9999301643dbfd2c (diff) |
2004-09-01 Sebastien Pouliot <sebastien@ximian.com>
* ZoneIdentityPermissionTest.cs: Ensure we aren't encoding NoZone in
the permission XML (ToXml).
svn path=/trunk/mcs/; revision=33147
Diffstat (limited to 'mcs/class')
-rw-r--r-- | mcs/class/corlib/Test/System.Security.Permissions/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/corlib/Test/System.Security.Permissions/ZoneIdentityPermissionTest.cs | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/mcs/class/corlib/Test/System.Security.Permissions/ChangeLog b/mcs/class/corlib/Test/System.Security.Permissions/ChangeLog index 20ce4b232eb..5e481846a56 100644 --- a/mcs/class/corlib/Test/System.Security.Permissions/ChangeLog +++ b/mcs/class/corlib/Test/System.Security.Permissions/ChangeLog @@ -1,3 +1,8 @@ +2004-09-01 Sebastien Pouliot <sebastien@ximian.com> + + * ZoneIdentityPermissionTest.cs: Ensure we aren't encoding NoZone in + the permission XML (ToXml). + 2003-08-20 Sebastien Pouliot <sebastien@ximian.com> * CodeAccessSecurityAttributeTest.cs: New unit tests for abstract diff --git a/mcs/class/corlib/Test/System.Security.Permissions/ZoneIdentityPermissionTest.cs b/mcs/class/corlib/Test/System.Security.Permissions/ZoneIdentityPermissionTest.cs index c243fd94dec..6d9f6c04cb3 100644 --- a/mcs/class/corlib/Test/System.Security.Permissions/ZoneIdentityPermissionTest.cs +++ b/mcs/class/corlib/Test/System.Security.Permissions/ZoneIdentityPermissionTest.cs @@ -124,6 +124,7 @@ namespace MonoTests.System.Security.Permissions { public void SecurityZone_NoZone () { ZoneIdentityPermission zip = BasicTestZone (SecurityZone.NoZone, false); + Assert.IsNull (zip.ToXml ().Attribute ("Zone"), "Zone Attribute"); Assert.IsTrue (zip.IsSubsetOf (null), "IsSubset-Null"); IPermission intersect = zip.Intersect (zip); Assert.IsNull (intersect, "Intersect with No Zone"); |