Example #1
0
        public void CreateBasicPool()
        {
            PoolFactory.InitializePool <BasicTestPool>(2, null);
            var item1 = PoolFactory.Create <BasicTestPool>();
            var item2 = PoolFactory.Create <BasicTestPool>();

            Assert.AreNotEqual(item1, item2);
            item1.Dispose();
            item2.Dispose();
            PoolFactory.DisposePool <BasicTestPool>();
        }