public void ExpandWithCount()
        {
            var pool = new PoolCollectionDynamic <Target>(new TargetBuilder());

            pool.Expand(8);

            Assert.AreEqual(8, pool.Count);
        }
        public void TrimWithCount()
        {
            var pool = new PoolCollectionDynamic <Target>(new TargetBuilder());

            pool.Expand(10);
            pool.Trim(4);

            Assert.AreEqual(6, pool.Count);
        }
        public void IsTrimRequired()
        {
            var pool = new PoolCollectionDynamic <Target>(new TargetBuilder());

            pool.Expand();
            pool.Add(new Target());

            bool result0 = pool.IsTrimRequired();

            Assert.True(result0);
            Assert.AreEqual(6, pool.Count);
            Assert.AreEqual(0, pool.EnabledCount);
            Assert.AreEqual(6, pool.DisabledCount);
        }