public void SetReadOnly()
        {
            MembershipUserCollection muc = new MembershipUserCollection();

            muc.Add(GetMember("me"));
            muc.SetReadOnly();
            muc.SetReadOnly();                  // twice
        }
        public void Remove_ReadOnly()
        {
            MembershipUserCollection muc = new MembershipUserCollection();

            muc.Add(GetMember("me"));
            muc.SetReadOnly();
            muc.Remove("me");
        }
        public void Count()
        {
            MembershipUserCollection muc = new MembershipUserCollection();

            Assert.AreEqual(0, muc.Count, "0");
            muc.Add(GetMember("me"));
            Assert.AreEqual(1, muc.Count, "1");
            muc.Add(GetMember("me too"));
            Assert.AreEqual(2, muc.Count, "2");
            muc.SetReadOnly();
            Assert.AreEqual(2, muc.Count, "2b");
        }