public void TestPieceInFinalStretch() { var game = new LudoEngine(2, "yyy"); game.PlayersList[0].Pieces[0].InNest = false; game.PlayersList[0].Pieces[0].Movement = 42; var question = game.MovePiece(0); var answer = new string[] { "Blue", "Piece has moved" }; Assert.Equal(question, answer); }
public void TestPieceMoveOnGameBoard() { var game = new LudoEngine(2, "xxx"); game.PlayersList[0].Pieces[0].InNest = false; game.PlayersList[0].Pieces[0].Movement = 14; var question = game.MovePiece(0); var answer = new string[] { "Blue", "Piece has moved" }; Assert.Equal(question, answer); }
static public string[] MovePiece(int pieceNr) { return(game.MovePiece(pieceNr - 1)); }