public void shouldStayInHangingDeadOnButtonPressAnyOther() { HangingDead hangingDead = new HangingDead(); var state = hangingDead.handleInput(KeyCode.Z); Assert.IsInstanceOf <HangingDead> (state); }
public void shouldTransitionToStateStartOnButtonPressEsc() { HangingDead hangingDead = new HangingDead(); var state = hangingDead.handleInput(KeyCode.Escape); Assert.IsInstanceOf <StateStart> (state); }