public void PressedStateIsRecorded() { pressurePlate.Press(); pressurePlateRecorder.CheckForChanges(); bool stateIsPressed = pressurePlateRecorder.LastState(); Assert.True(stateIsPressed); }
/// update the pressure plate's state to match this state public override void SetState(bool state) { if (state) { plate.Press(); } else { plate.Release(); } }