Exemple #1
0
        public void ReleasedStateIsRecorded()
        {
            pressurePlate.Release();
            pressurePlateRecorder.CheckForChanges();
            bool stateIsPressed = pressurePlateRecorder.LastState();

            Assert.False(stateIsPressed);
        }
 /// update the pressure plate's state to match this state
 public override void SetState(bool state)
 {
     if (state)
     {
         plate.Press();
     }
     else
     {
         plate.Release();
     }
 }