public void Properties_Deny_Unrestricted()
 {
     Assert.AreEqual(0, hsoc.Count, "Count");
     Assert.IsNotNull(hsoc.GetEnumerator(), "GetEnumerator");
     Assert.IsNull(hsoc.GetObject("mono"), "GetObject");
     Assert.IsNull(hsoc["mono"], "this[string]");
     Assert.IsTrue(hsoc.IsReadOnly, "IsReadOnly");
     Assert.IsFalse(hsoc.IsSynchronized, "IsSynchronized");
     Assert.IsNotNull(hsoc.SyncRoot, "SyncRoot");
     Assert.IsTrue(hsoc.NeverAccessed, "NeverAccessed");
 }
Beispiel #2
0
 public override IEnumerator GetEnumerator()
 {
     return(_collection.GetEnumerator());
 }
Beispiel #3
0
 public System.Collections.IEnumerator GetEnumerator()
 {
     return(_state.GetEnumerator());
 }