public void HashSet_Generic_RemoveWhere_AllElements(int setLength)
        {
            SegmentedHashSet <T> set = (SegmentedHashSet <T>)GenericISetFactory(setLength);
            int removedCount         = set.RemoveWhere((value) => { return(true); });

            Assert.Equal(setLength, removedCount);
        }
        public void HashSet_Generic_RemoveWhere_NewObject() // Regression Dev10_624201
        {
            object[] array = new object[2];
            object   obj   = new();
            SegmentedHashSet <object> set = new SegmentedHashSet <object>();

            set.Add(obj);
            set.Remove(obj);
            foreach (object o in set)
            {
            }
            set.CopyTo(array, 0, 2);
            set.RemoveWhere((element) => { return(false); });
        }