Пример #1
0
        public void shouldStayInLifeFailOnButtonPressAnyOther()
        {
            LifeFail lifeFail = new LifeFail();

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

            Assert.IsInstanceOf <LifeFail> (state);
        }
Пример #2
0
        public void shouldTransitionToStateStartOnButtonPressEsc()
        {
            LifeFail lifeFail = new LifeFail();

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

            Assert.IsInstanceOf <StateStart> (state);
        }