Ejemplo n.º 1
0
        public void shouldStayInLifeFailOnButtonPressAnyOther()
        {
            LifeFail lifeFail = new LifeFail();

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

            Assert.IsInstanceOf <LifeFail> (state);
        }
Ejemplo n.º 2
0
        public void shouldTransitionToStateStartOnButtonPressEsc()
        {
            LifeFail lifeFail = new LifeFail();

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

            Assert.IsInstanceOf <StateStart> (state);
        }