public void MovePlayer_ShouldMovePlayerToAnotherPosition()
        {
            //Arrange
            int expected = 20;

            contentTest.GetViewModel <GameBoardViewModel>().GamePool.GameCards[0].AddPlayerOnCard(testPlayer);

            //Act
            testPlayer.MovePlayer(20);

            //Assert
            Assert.Equal(expected, testPlayer.CurrentPosition);
        }
示例#2
0
 public void MovePlayer(KeyCode code)
 {
     _viewModel.MovePlayer(code);
     transform.position = _viewModel.PushPosition();
 }