public void Should_stop_on_stop_action()
        {
            Action.Stop mockStopAction = new Action.Stop {
            };
            App.Store.Dispatch(mockStopAction);

            State currentState = GetCurrentState();

            Assert.IsFalse(currentState.Movement.isMoving);
        }
Beispiel #2
0
        public static State Stop(State previousState, Action.Stop action)
        {
            // stop moving
            MoveState moveState = new MoveState {
                isMoving = false
            };

            return(new State {
                Movement = moveState
            });
        }