Example #1
0
        public void ShouldStayInHoleInNeckOnAnyOtherButton()
        {
            HoleInNeck holeInNeck = new HoleInNeck();

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

            Assert.IsInstanceOf <HoleInNeck> (state);
        }
Example #2
0
        public void ShouldTransitionToStateStartOnButtonPressEsc()
        {
            HoleInNeck holeInNeck = new HoleInNeck();

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

            Assert.IsInstanceOf <StateStart> (state);
        }