public void GetSet()
        {
            PermissionSetCollection psc = new PermissionSetCollection();
            PermissionSet           unr = new PermissionSet(PermissionState.Unrestricted);

            psc.Add(unr);
            PermissionSet ps = psc.GetSet(0);

            Assert.AreEqual(unr.ToString(), ps.ToString(), "Same XML");
            Assert.IsTrue(Object.ReferenceEquals(unr, ps), "Same Object Reference");
        }
        public void GetSet_Zero_Empty()
        {
            PermissionSetCollection psc = new PermissionSetCollection();

            psc.GetSet(0);
        }
        public void GetSet_MaxInt()
        {
            PermissionSetCollection psc = new PermissionSetCollection();

            psc.GetSet(Int32.MaxValue);
        }
        public void GetSet_Negative()
        {
            PermissionSetCollection psc = new PermissionSetCollection();

            psc.GetSet(-1);
        }