Imported Upstream version 4.0.0~alpha1

Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
Jo Shields
2015-04-07 09:35:12 +01:00
parent 283343f570
commit 3c1f479b9d
22469 changed files with 2931443 additions and 869343 deletions

View File

@ -45,9 +45,7 @@ namespace MonoTests.System.Security.Permissions {
{
PermissionSetAttribute a = new PermissionSetAttribute (SecurityAction.Assert);
Assert.IsNull (a.File, "File");
#if NET_2_0
Assert.IsNull (a.Hex, "Hex");
#endif
Assert.IsNull (a.Name, "Name");
Assert.IsNull (a.XML, "XML");
Assert.IsFalse (a.UnicodeEncoded, "UnicodeEncoded");
@ -97,21 +95,16 @@ namespace MonoTests.System.Security.Permissions {
PermissionSetAttribute a = new PermissionSetAttribute (SecurityAction.Assert);
a.File = "mono";
Assert.AreEqual ("mono", a.File, "File");
#if NET_2_0
Assert.IsNull (a.Hex, "Hex");
#endif
Assert.IsNull (a.Name, "Name");
Assert.IsNull (a.XML, "XML");
a.File = null;
Assert.IsNull (a.File, "File");
#if NET_2_0
Assert.IsNull (a.Hex, "Hex");
#endif
Assert.IsNull (a.Name, "Name");
Assert.IsNull (a.XML, "XML");
}
#if NET_2_0
[Test]
public void Hex ()
{
@ -176,7 +169,6 @@ namespace MonoTests.System.Security.Permissions {
PermissionSet psbeu = a.CreatePermissionSet ();
Assert.IsTrue (ps.Equals (psbeu), "HEX-BIGENDIAN-UNICODE");
}
#endif
[Test]
public void Name ()
@ -184,16 +176,12 @@ namespace MonoTests.System.Security.Permissions {
PermissionSetAttribute a = new PermissionSetAttribute (SecurityAction.Assert);
a.Name = "mono";
Assert.IsNull (a.File, "File");
#if NET_2_0
Assert.IsNull (a.Hex, "Hex");
#endif
Assert.AreEqual ("mono", a.Name, "Name");
Assert.IsNull (a.XML, "XML");
a.Name = null;
Assert.IsNull (a.File, "File");
#if NET_2_0
Assert.IsNull (a.Hex, "Hex");
#endif
Assert.IsNull (a.Name, "Name");
Assert.IsNull (a.XML, "XML");
}
@ -204,16 +192,12 @@ namespace MonoTests.System.Security.Permissions {
PermissionSetAttribute a = new PermissionSetAttribute (SecurityAction.Assert);
a.XML = "mono";
Assert.IsNull (a.File, "File");
#if NET_2_0
Assert.IsNull (a.Hex, "Hex");
#endif
Assert.IsNull (a.Name, "Name");
Assert.AreEqual ("mono", a.XML, "XML");
a.XML = null;
Assert.IsNull (a.File, "File");
#if NET_2_0
Assert.IsNull (a.Hex, "Hex");
#endif
Assert.IsNull (a.Name, "Name");
Assert.IsNull (a.XML, "XML");
}
@ -234,9 +218,7 @@ namespace MonoTests.System.Security.Permissions {
PermissionSetAttribute a = new PermissionSetAttribute (SecurityAction.Assert);
a.Unrestricted = true;
Assert.IsNull (a.File, "File");
#if NET_2_0
Assert.IsNull (a.Hex, "Hex");
#endif
Assert.IsNull (a.Name, "Name");
Assert.IsNull (a.XML, "XML");