Author: spouliot
Date: 2005-04-25 13:08:17 -0400 (Mon, 25 Apr 2005)
New Revision: 43553
Modified:
trunk/mcs/class/corlib/Test/System.Security/ChangeLog
trunk/mcs/class/corlib/Test/System.Security/HostSecurityManagerTest.cs
trunk/mcs/class/corlib/Test/System.Security/PermissionSetCollectionTest.cs
Log:
2005-04-25 Sebastien Pouliot <[EMAIL PROTECTED]>
* HostSecurityManagerTest.cs: Renamed HostSecurityManagerFlags to
HostSecurityManagerOptions to match beta2.
* PermissionSetCollectionTest.cs: Removed "set" tests for the
PermissionSets property (removed in beta2).
Modified: trunk/mcs/class/corlib/Test/System.Security/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.Security/ChangeLog 2005-04-25
16:52:17 UTC (rev 43552)
+++ trunk/mcs/class/corlib/Test/System.Security/ChangeLog 2005-04-25
17:08:17 UTC (rev 43553)
@@ -1,3 +1,10 @@
+2005-04-25 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * HostSecurityManagerTest.cs: Renamed HostSecurityManagerFlags to
+ HostSecurityManagerOptions to match beta2.
+ * PermissionSetCollectionTest.cs: Removed "set" tests for the
+ PermissionSets property (removed in beta2).
+
2005-03-31 Sebastien Pouliot <[EMAIL PROTECTED]>
* SecurityExceptionCas.cs: Added new tests for GetObjectData.
Modified: trunk/mcs/class/corlib/Test/System.Security/HostSecurityManagerTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.Security/HostSecurityManagerTest.cs
2005-04-25 16:52:17 UTC (rev 43552)
+++ trunk/mcs/class/corlib/Test/System.Security/HostSecurityManagerTest.cs
2005-04-25 17:08:17 UTC (rev 43553)
@@ -45,7 +45,7 @@
{
HostSecurityManager hsm = new HostSecurityManager ();
Assert.IsNull (hsm.DomainPolicy, "DomainPolicy");
- Assert.AreEqual (HostSecurityManagerFlags.AllFlags,
hsm.Flags, "Flags");
+ Assert.AreEqual (HostSecurityManagerOptions.AllFlags,
hsm.Flags, "Flags");
}
[Test]
Modified:
trunk/mcs/class/corlib/Test/System.Security/PermissionSetCollectionTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.Security/PermissionSetCollectionTest.cs
2005-04-25 16:52:17 UTC (rev 43552)
+++ trunk/mcs/class/corlib/Test/System.Security/PermissionSetCollectionTest.cs
2005-04-25 17:08:17 UTC (rev 43553)
@@ -35,87 +35,87 @@
using System.Security;
using System.Security.Permissions;
-namespace MonoTests.System.Security {
-
- // "alternate" IList implementation
- class TestList : IList {
-
- private IList l;
-
- public TestList ()
- {
- l = (IList) new ArrayList ();
- }
-
- public int Add (object value)
- {
- return l.Add (value);
- }
-
- public void Clear ()
- {
- l.Clear ();
- }
-
- public bool Contains (object value)
- {
- return l.Contains (value);
- }
-
- public int IndexOf (object value)
- {
- return l.IndexOf (value);
- }
-
- public void Insert (int index, object value)
- {
- l.Insert (index, value);
- }
-
- public bool IsFixedSize {
- get { return l.IsFixedSize; }
- }
-
- public bool IsReadOnly {
- get { return l.IsReadOnly; }
- }
-
- public void Remove (object value)
- {
- l.Remove (value);
- }
-
- public void RemoveAt (int index)
- {
- l.RemoveAt (index);
- }
-
- public object this [int index] {
- get { return l [index]; }
- set { l [index] = value; }
- }
-
- public void CopyTo (Array array, int index)
- {
- l.CopyTo (array, index);
- }
-
- public int Count {
- get { return l.Count; }
- }
-
- public bool IsSynchronized {
- get { return l.IsSynchronized; }
- }
-
- public object SyncRoot {
- get { return l.SyncRoot; }
- }
-
- public IEnumerator GetEnumerator ()
- {
- return l.GetEnumerator ();
- }
+namespace MonoTests.System.Security {
+
+ // "alternate" IList implementation
+ class TestList : IList {
+
+ private IList l;
+
+ public TestList ()
+ {
+ l = (IList) new ArrayList ();
+ }
+
+ public int Add (object value)
+ {
+ return l.Add (value);
+ }
+
+ public void Clear ()
+ {
+ l.Clear ();
+ }
+
+ public bool Contains (object value)
+ {
+ return l.Contains (value);
+ }
+
+ public int IndexOf (object value)
+ {
+ return l.IndexOf (value);
+ }
+
+ public void Insert (int index, object value)
+ {
+ l.Insert (index, value);
+ }
+
+ public bool IsFixedSize {
+ get { return l.IsFixedSize; }
+ }
+
+ public bool IsReadOnly {
+ get { return l.IsReadOnly; }
+ }
+
+ public void Remove (object value)
+ {
+ l.Remove (value);
+ }
+
+ public void RemoveAt (int index)
+ {
+ l.RemoveAt (index);
+ }
+
+ public object this [int index] {
+ get { return l [index]; }
+ set { l [index] = value; }
+ }
+
+ public void CopyTo (Array array, int index)
+ {
+ l.CopyTo (array, index);
+ }
+
+ public int Count {
+ get { return l.Count; }
+ }
+
+ public bool IsSynchronized {
+ get { return l.IsSynchronized; }
+ }
+
+ public object SyncRoot {
+ get { return l.SyncRoot; }
+ }
+
+ public IEnumerator GetEnumerator ()
+ {
+ return l.GetEnumerator ();
+ }
}
[TestFixture]
@@ -308,24 +308,6 @@
PermissionSet ps = psc.GetSet (0);
Assert.AreEqual (unr.ToString (), ps.ToString (), "Same
XML");
Assert.IsTrue (Object.ReferenceEquals (unr, ps), "Same
Object Reference");
- }
-
- [Test]
- public void PermissionSets_SetArrayList ()
- {
- PermissionSetCollection psc = new
PermissionSetCollection ();
- PermissionSet unr = new PermissionSet
(PermissionState.Unrestricted);
- psc.Add (unr);
- Assert.AreEqual (1, psc.Count, "original ArrayList");
- psc.PermissionSets = new ArrayList ();
- Assert.AreEqual (0, psc.Count, "new ArrayList");
- }
-
- [Test]
- public void PermissionSets_SetTestList ()
- {
- PermissionSetCollection psc = new
PermissionSetCollection ();
- psc.PermissionSets = new TestList ();
}
[Test]
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches