|
|
@@ -5,7 +5,7 @@
|
|
|
// Author:
|
|
|
// Sebastien Pouliot <[email protected]>
|
|
|
//
|
|
|
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
|
|
|
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
|
|
|
//
|
|
|
// Permission is hereby granted, free of charge, to any person obtaining
|
|
|
// a copy of this software and associated documentation files (the
|
|
|
@@ -33,8 +33,6 @@ using System.Security;
|
|
|
using System.Security.Permissions;
|
|
|
using System.Web;
|
|
|
|
|
|
-//using System.Diagnostics;
|
|
|
-
|
|
|
namespace MonoTests.System.Web {
|
|
|
|
|
|
[TestFixture]
|
|
|
@@ -92,8 +90,13 @@ namespace MonoTests.System.Web {
|
|
|
Assert.AreEqual (AspNetHostingPermissionLevel.Unrestricted, anhp.Level, "Level");
|
|
|
Assert.IsTrue (anhp.IsUnrestricted (), "IsUnrestricted");
|
|
|
|
|
|
- SecurityElement se = anhp.ToXml ();
|
|
|
- Assert.IsNull (se.Attribute ("Unrestricted"), "Xml-Unrestricted");
|
|
|
+ SecurityElement se = anhp.ToXml ();
|
|
|
+#if NET_2_0
|
|
|
+ // fixed in 2.0 RC
|
|
|
+ Assert.IsNotNull (se.Attribute ("Unrestricted"), "Xml-Unrestricted");
|
|
|
+#else
|
|
|
+ Assert.IsNull (se.Attribute ("Unrestricted"), "Xml-Unrestricted");
|
|
|
+#endif
|
|
|
Assert.AreEqual ("Unrestricted", se.Attribute ("Level"), "Xml-Level");
|
|
|
Assert.IsNull (se.Children, "Xml-Children");
|
|
|
|