public void TestIfClickedRegionHasChangedState()
        {
            var idx = BoardStateManager.ClickedRegion(gameBoard.regions, currentState, previousState);

            BoardStateManager.UpdateClickedRegionState(gameBoard.regions, idx);
            Assert.That(gameBoard.regions[4].state, Is.EqualTo(1));
        }
Beispiel #2
0
        public void ClickedRegionHasChangedState()
        {
            currentState = new MouseState(250, 250, 0, ButtonState.Pressed, ButtonState.Released,
                                          ButtonState.Released, ButtonState.Released, ButtonState.Released);
            var idx = BoardStateManager.ClickedRegion(gameBoard.regions, currentState, previousState);

            BoardStateManager.UpdateClickedRegionState(gameBoard.regions, idx);
            Assert.That(gameBoard.regions[4].State, Is.EqualTo(1));
        }