// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
using NUnit.Framework;
using System;
+using System.Security;
using System.Security.Permissions;
using System.Web.UI.WebControls;
// note: we do not inherit from AspNetHostingMinimal because
// BaseDataBoundControl is an abstract class
+ [SetUp]
+ public virtual void SetUp ()
+ {
+ if (!SecurityManager.SecurityEnabled)
+ Assert.Ignore ("SecurityManager.SecurityEnabled is OFF");
+ }
+
[Test]
[PermissionSet (SecurityAction.Deny, Unrestricted = true)]
public void Deny_Unrestricted ()
}
}
-#endif