Assert.AreEqual (SecurityAction.RequestOptional, a.Action, "Action=RequestOptional");\r
a.Action = SecurityAction.RequestRefuse;\r
Assert.AreEqual (SecurityAction.RequestRefuse, a.Action, "Action=RequestRefuse");\r
-#if NET_2_0\r
- a.Action = SecurityAction.DemandChoice;\r
- Assert.AreEqual (SecurityAction.DemandChoice, a.Action, "Action=DemandChoice");\r
- a.Action = SecurityAction.InheritanceDemandChoice;\r
- Assert.AreEqual (SecurityAction.InheritanceDemandChoice, a.Action, "Action=InheritanceDemandChoice");\r
- a.Action = SecurityAction.LinkDemandChoice;\r
- Assert.AreEqual (SecurityAction.LinkDemandChoice, a.Action, "Action=LinkDemandChoice");\r
-#endif\r
}\r
\r
[Test]\r
// Author:\r
// Sebastien Pouliot <sebastien@ximian.com>\r
//\r
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)\r
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)\r
//\r
// Permission is hereby granted, free of charge, to any person obtaining\r
// a copy of this software and associated documentation files (the\r
using System.Security.Permissions;\r
using System.Web;\r
\r
-//using System.Diagnostics;\r
-\r
namespace MonoTests.System.Web {\r
\r
[TestFixture]\r
Assert.AreEqual (AspNetHostingPermissionLevel.Unrestricted, anhp.Level, "Level");\r
Assert.IsTrue (anhp.IsUnrestricted (), "IsUnrestricted");\r
\r
- SecurityElement se = anhp.ToXml ();\r
- Assert.IsNull (se.Attribute ("Unrestricted"), "Xml-Unrestricted");\r
+ SecurityElement se = anhp.ToXml ();
+#if NET_2_0
+ // fixed in 2.0 RC\r
+ Assert.IsNotNull (se.Attribute ("Unrestricted"), "Xml-Unrestricted");
+#else\r
+ Assert.IsNull (se.Attribute ("Unrestricted"), "Xml-Unrestricted");
+#endif\r
Assert.AreEqual ("Unrestricted", se.Attribute ("Level"), "Xml-Level");\r
Assert.IsNull (se.Children, "Xml-Children");\r
\r
+2005-09-21 Sebastien Pouliot <sebastien@ximian.com>
+
+ * AspNetHostingPermissionTest.cs: 2.0 RC fixed the "unrestricted" XML
+ so the test case has been updated.
+ * AspNetHostingPermissionAttributeTest.cs: Removed actions that have
+ been killed in 2.0 RC.
+
2005-01-19 Sebastien Pouliot <sebastien@ximian.com>
* AspNetHostingPermissionTest.cs: Re-fixed for NET_1_1. Fx 1.1 SP1