예제 #1
0
        public void shouldStayInBleedingNeckOnButtonPressAnyOther()
        {
            BleedingNeck bleedingNeck = new BleedingNeck();

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

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

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

            Assert.IsInstanceOf <StateStart> (state);
        }