コード例 #1
0
        public void MovePlayer_WhenCalled_ChangeThePlayerPosition()
        {
            //Arrange
            _play.Game.CreateGame();

            //Act
            Assert.Empty(_play.Game.Board.SquareList[52].Players); //Check that the position does not have any player first
            _play.MovePlayer(_playerMock.Object);

            //Assert
            Assert.Single(_play.Game.Board.SquareList[52].Players);
        }