public void Constructor0_Deny_Unrestricted () { CodeNamespaceImportCollection coll = new CodeNamespaceImportCollection (); coll.Add (cni); Assert.AreSame (cni, coll[0], "this[int]"); coll[0] = cni; coll.Clear (); coll.AddRange (array); Assert.IsNotNull (coll.GetEnumerator (), "GetEnumerator"); }