Ejemplo n.º 1
0
        public void CloseStateIsRecorded()
        {
            keyBlock.Close();
            keyBlockRecorder.CheckForChanges();
            bool stateIsOpen = keyBlockRecorder.LastState();

            Assert.False(stateIsOpen);
        }
Ejemplo n.º 2
0
 /// update the key block's state to match this state
 public override void SetState(bool state)
 {
     if (state)
     {
         block.Open();
     }
     else
     {
         block.Close();
     }
 }