Пример #1
0
        public void TestEnsureExtraCapacity()
        {
            FasterList <int> listA = new FasterList <int>();

            listA.ExpandBy(10);
            listA.EnsureExtraCapacity(10);

            Assert.That(listA.capacity, Is.EqualTo(20));
            Assert.That(listA.count, Is.EqualTo(10));
        }