public void CloseStateIsRecorded() { keyBlock.Close(); keyBlockRecorder.CheckForChanges(); bool stateIsOpen = keyBlockRecorder.LastState(); Assert.False(stateIsOpen); }
/// update the key block's state to match this state public override void SetState(bool state) { if (state) { block.Open(); } else { block.Close(); } }