public void TestEvictExtraItems_JustHarmless()
        {
            int count = 0;

            using (var target = new OnTheFlyObjectPool <object>(conf => Interlocked.Increment(ref count), new ObjectPoolConfiguration()))
            {
                target.EvictExtraItems();
            }
        }
        public void TestReturn_Null()
        {
            int count = 0;

            using (var target = new OnTheFlyObjectPool <object>(conf => Interlocked.Increment(ref count), new ObjectPoolConfiguration()))
            {
                target.Return(null);
            }
        }
        public void TestBorrow_AlwaysFactoryCalled()
        {
            int count = 0;

            using (var target = new OnTheFlyObjectPool <object>(conf => Interlocked.Increment(ref count), new ObjectPoolConfiguration()))
            {
                Assert.That(target.Borrow(), Is.EqualTo(1));
                Assert.That(target.Borrow(), Is.EqualTo(2));
            }
        }