Ejemplo n.º 1
0
        public void shouldStayInHangingDeadOnButtonPressAnyOther()
        {
            HangingDead hangingDead = new HangingDead();

            var state = hangingDead.handleInput(KeyCode.Z);

            Assert.IsInstanceOf <HangingDead> (state);
        }
Ejemplo n.º 2
0
        public void shouldTransitionToStateStartOnButtonPressEsc()
        {
            HangingDead hangingDead = new HangingDead();

            var state = hangingDead.handleInput(KeyCode.Escape);

            Assert.IsInstanceOf <StateStart> (state);
        }