public void the_state_cannot_be_retrieved_as_locked()
 {
     Assert.Throws <InvalidOperationException>(() => {
         var state = _cache.GetLockedPartitionState("partition");
         Assert.AreEqual("data", state.State);
     });
 }
        public void relocked_state_can_be_retrieved_as_locked()
        {
            var state = _cache.GetLockedPartitionState("partition");

            Assert.AreEqual("data", state.State);
        }
 public void partitions_locked_before_the_unlock_position_cannot_be_retrieved_as_locked()
 {
     _cache.GetLockedPartitionState("partition1");
 }
 public void partitions_locked_before_the_unlock_position_cannot_be_retrieved_as_locked()
 {
     Assert.Throws <InvalidOperationException>(() => { _cache.GetLockedPartitionState("partition1"); });
 }