Example #1
0
        public void ShouldStayInSansShankOnAnyOtherButton()
        {
            SansShank sansShank = new SansShank();

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

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

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

            Assert.IsInstanceOf <StateStart> (state);
        }