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