public void DoorOpen_PowerSetTo100AndStarted_DoesntRun() { //ARRANGE //Press power button twice, should now be running at 100 instead of fifty. powerButtonSubstitute.Pressed += Raise.Event(); powerButtonSubstitute.Pressed += Raise.Event(); //Press time button to get into SetTime state timeButtonSubstitute.Pressed += Raise.Event(); //ACT //Open and close the door, should now be in ready instead of SetTime state door.Open(); door.Close(); //Press start-cancel -> Should do nothing startCancelButtonSubstitute.Pressed += Raise.Event(); //ASSERT //PowerTube shouldn't turn on, it only would if the power was turned on. powerTubeSubstitute.DidNotReceiveWithAnyArgs().TurnOn(default);