예제 #1
0
        public void ShouldStayInStabbedInEyeOnAnyOtherButton()
        {
            StabbedInEye stabbedInEye = new StabbedInEye();

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

            Assert.IsInstanceOf <StabbedInEye> (state);
        }
예제 #2
0
        public void ShouldTransitionToStateStartOnButtonPressEsc()
        {
            StabbedInEye stabbedInEye = new StabbedInEye();

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

            Assert.IsInstanceOf <StateStart> (state);
        }