Esempio n. 1
0
        public void shouldStayInBleedingNeckOnButtonPressAnyOther()
        {
            BleedingNeck bleedingNeck = new BleedingNeck();

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

            Assert.IsInstanceOf <BleedingNeck> (state);
        }
Esempio n. 2
0
        public void shouldTransitionToStateStartOnButtonPressEsc()
        {
            BleedingNeck bleedingNeck = new BleedingNeck();

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

            Assert.IsInstanceOf <StateStart> (state);
        }