public void RemoveSet (int index) { if ((index < 0) || (index >= _list.Count)) throw new ArgumentOutOfRangeException ("index"); _list.RemoveAt (index); }
public void RemoveSet () { PermissionSetCollection psc = new PermissionSetCollection (); PermissionSet unr = new PermissionSet (PermissionState.Unrestricted); psc.Add (unr); psc.RemoveSet (0); Assert.AreEqual (0, psc.Count, "Count"); }