Exemplo n.º 1
0
        public void Should_stop_on_stop_action()
        {
            var mockLookAction  = new Action.StopLook();
            var mockCameraState = new CameraState {
                isLooking = true
            };
            var sut    = container_.Resolve <Reducer>();
            var result = sut.Reduce(mockCameraState, mockLookAction);

            Assert.IsFalse(result.isLooking);
        }
Exemplo n.º 2
0
 // stop look
 public static CameraState StopLook(CameraState state, Action.StopLook action)
 {
     state.isLooking = false;
     Debug.Log($"in StopLook, returning state: {ObjectDumper.Dump(state)}");
     return(state);
 }