Beispiel #1
0
        public void SetUp()
        {
            matchTileGridModel = Substitute.For <IMatchTileGridModel>();

            hideInvalidTilesCommand = new HideInvalidTilesCommand();
            hideInvalidTilesCommand.matchTileGridModel = matchTileGridModel;
        }
Beispiel #2
0
        public void SetUp()
        {
            matchTileGridModel = Substitute.For <IMatchTileGridModel>();

            matchTileHintCommand = new MatchTileHintCommand();
            matchTileHintCommand.matchTileGridModel = matchTileGridModel;
        }
Beispiel #3
0
        public void SetUp()
        {
            matchTileGridModel = Substitute.For <IMatchTileGridModel>();

            removeMatchTileHightLightCommand = new RemoveMatchTileHightLightCommand();
            removeMatchTileHightLightCommand.matchTileGridModel = matchTileGridModel;
        }
Beispiel #4
0
        public void SetUp()
        {
            matchTileGridModel = Substitute.For <IMatchTileGridModel>();

            loadMatchTileGridDataCommand = new LoadMatchTileGridDataCommand();
            loadMatchTileGridDataCommand.matchTileGridModel = matchTileGridModel;
        }
Beispiel #5
0
        public void SetUp()
        {
            matchTileGridModel = Substitute.For <IMatchTileGridModel>();

            positionTilesCommand = new PositionTilesCommand();
            positionTilesCommand.matchTileGridModel = matchTileGridModel;
        }
Beispiel #6
0
        public void SetUp()
        {
            matchTileGridModel = Substitute.For <IMatchTileGridModel>();
            eventDispatcher    = Substitute.For <IEventDispatcher> ();

            allowFallingTilesCommand = new AllowFallingTilesCommand();
            allowFallingTilesCommand.matchTileGridModel = matchTileGridModel;
            allowFallingTilesCommand.eventDispatcher    = eventDispatcher;

            eventDispatcher.CleanAndDestroy();
        }
Beispiel #7
0
        public void SetUp()
        {
            matchTileGridModel = Substitute.For <IMatchTileGridModel>();
            eventDispatcher    = Substitute.For <IEventDispatcher> ();

            checkMovesRemainingCommand = new CheckMovesRemainingCommand();
            checkMovesRemainingCommand.matchTileGridModel = matchTileGridModel;
            checkMovesRemainingCommand.eventDispatcher    = eventDispatcher;

            eventDispatcher.CleanAndDestroy();
        }
Beispiel #8
0
        public void SetUp()
        {
            matchTileGridModel = Substitute.For <IMatchTileGridModel>();
            eventDispatcher    = Substitute.For <IEventDispatcher> ();

            shuffleGridCommand = new ShuffleGridCommand();
            shuffleGridCommand.matchTileGridModel = matchTileGridModel;
            shuffleGridCommand.eventDispatcher    = eventDispatcher;

            eventDispatcher.CleanAndDestroy();
        }
Beispiel #9
0
        public void SetUp()
        {
            matchTileGridModel = Substitute.For <IMatchTileGridModel>();
            matchTileFactory   = Substitute.For <IMatchTileFactory> ();
            eventDispatcher    = Substitute.For <IEventDispatcher> ();

            createNewTileCommand = new CreateNewTileCommand();
            createNewTileCommand.matchTileGridModel = matchTileGridModel;
            createNewTileCommand.matchTileFactory   = matchTileFactory;
            createNewTileCommand.eventDispatcher    = eventDispatcher;
        }
Beispiel #10
0
        public void SetUp()
        {
            matchTileGridModel = Substitute.For <IMatchTileGridModel>();
            matchTileFactory   = Substitute.For <IMatchTileFactory>();
            eventDispatcher    = Substitute.For <IEventDispatcher> ();

            createMatchTileGridCommand = new CreateMatchTileGridCommand();
            createMatchTileGridCommand.matchTileGridModel = matchTileGridModel;
            createMatchTileGridCommand.matchTileFactory   = matchTileFactory;
            createMatchTileGridCommand.eventDispatcher    = eventDispatcher;

            eventDispatcher.CleanAndDestroy();
        }
Beispiel #11
0
        public void SetUp()
        {
            matchTileGridModel = Substitute.For <IMatchTileGridModel>();
            eventDispatcher    = Substitute.For <IEventDispatcher> ();

            calculateTilesToRemoveCommand = new CalculateTilesToRemoveCommand();
            calculateTilesToRemoveCommand.matchTileGridModel = matchTileGridModel;
            calculateTilesToRemoveCommand.eventDispatcher    = eventDispatcher;

            matchTileGridModel.allowTouch = true;

            eventDispatcher.CleanAndDestroy();
        }
Beispiel #12
0
        public void SetUp()
        {
            matchTileGridModel            = Substitute.For <IMatchTileGridModel>();
            matchTileGridModel.gridHolder = new GameObject();

            eventDispatcher = Substitute.For <IEventDispatcher> ();

            createMatchTileGridHolderCommand = new CreateMatchTileGridHolderCommand();
            createMatchTileGridHolderCommand.matchTileGridModel = matchTileGridModel;
            createMatchTileGridHolderCommand.eventDispatcher    = eventDispatcher;

            MatchTilesData matchTilesData = ScriptableObject.CreateInstance <MatchTilesData> ();

            matchTileGridModel.matchTilesData.Returns(matchTilesData);

            eventDispatcher.CleanAndDestroy();
        }
Beispiel #13
0
        public void SetUp()
        {
            matchTileGridModel = Substitute.For <IMatchTileGridModel>();
            eventDispatcher    = Substitute.For <IEventDispatcher> ();

            matchTileTouchedCommand = new MatchTileTouchedCommand();
            matchTileTouchedCommand.matchTileGridModel = matchTileGridModel;
            matchTileTouchedCommand.eventDispatcher    = eventDispatcher;

            GameObject gameObject = new GameObject();

            gameObject.transform.localPosition = Vector3.zero;

            TouchedObject touchedObject = new TouchedObject();

            touchedObject.objectHit = gameObject;

            matchTileTouchedCommand.touchedObject = touchedObject;

            eventDispatcher.CleanAndDestroy();
        }