Exemple #1
0
        public void TestResize()
        {
            FasterList <int> list = new FasterList <int>(0);

            list.Resize(10);

            Assert.That(list.capacity, Is.EqualTo(10));
            Assert.That(list.count, Is.EqualTo(0));
        }
        public void TestEnsureCapacity()
        {
            FasterList <int> listA = new FasterList <int>();

            listA.Resize(10);

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