コード例 #1
0
        public void ShouldStayInHoleInNeckOnAnyOtherButton()
        {
            HoleInNeck holeInNeck = new HoleInNeck();

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

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

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

            Assert.IsInstanceOf <StateStart> (state);
        }