示例#1
0
        public void LeafCapacityLimitIsRespected()
        {
            var list = new SparseAList <int>(_maxLeafSize, _maxInnerSize);

            for (int i = 0; i < 100 + _maxLeafSize * _maxInnerSize; i++)
            {
                list.Insert(_r.Next(list.Count + 1), i);
            }

            VerifyLeafCapacityLimitIsRespected(list, _maxLeafSize);
        }