public void TearDown()
 {
     if (pool != null)
     {
         pool.Dispose();
         pool = null;
     }
 }
Example #2
0
        public void Constructor_WithSockIOPool_SetsProperties()
        {
            pool.Dispose();

            pool = new MemcachedCachePool(SockIOPool.GetInstance("pool"));
            Assert.AreEqual("pool", pool.PoolName);
            Assert.AreSame(SockIOPool.GetInstance("pool"), pool.SockIOPool);
        }
Example #3
0
 public void TearDown()
 {
     if (pool != null)
     {
         pool.Dispose();
         pool = null;
     }
 }
Example #4
0
        public void TestFixtureSetUp()
        {
            this.BlocksGetWhilePopulatorForThatKeyIsRunning = false;

            pool         = new MemcachedCachePool();
            pool.Servers = new string[] { "localhost" };
            pool.Start();
            Thread.Sleep(200); // FIXME: There seems to be a delay before the
            // first sockets in the pool become usable.  If I remove this sleep then
            // the tests will fail because they cannot obtain an open connection to
            // the server from the available pool.
        }
        public void Constructor_WithSockIOPool_SetsProperties()
        {
            pool.Dispose();

            pool = new MemcachedCachePool(SockIOPool.GetInstance("pool"));
            Assert.AreEqual("pool", pool.PoolName);
            Assert.AreSame(SockIOPool.GetInstance("pool"), pool.SockIOPool);
        }
 public void SetUp()
 {
     pool = new MemcachedCachePool();
 }
Example #7
0
 public void SetUp()
 {
     pool = new MemcachedCachePool();
 }