public void TestTearDown()
        {
            _cluster.Dispose();
            _cluster = null;

            _mreConfig.Dispose();
            _mreConfig = null;
        }
 public void TestSetUp()
 {
     _counters = new TestCounters();
     _mreConfig = new ManualResetEventSlim();
     _cluster = new CouchbaseCluster(new MemcacheClientConfiguration() { TransportConnectTimerPeriod = Timeout.InfiniteTimeSpan }, "Some.Bucket", new[] { new IPEndPoint(0, 0) });
     _cluster.NodeAdded += _ => _counters.IncrementNodesAdded();
     _cluster.NodeRemoved += _ => _counters.IncrementNodesRemoved();
     _cluster.OnError += e => { _counters.IncrementErrors(); Console.Error.WriteLine(e.Message); Console.Error.WriteLine(e.StackTrace); };
     _cluster.OnConfig += () => _mreConfig.Set();
 }