public void ExecuteMoves_Capture_RemovesCapturedPiece() { Game game = new Game(); game.SetPieceLocation(Coord.Create(0, 0), BoardSpaceState.FriendlyPieceShort); game.SetPieceLocation(Coord.Create(0, 1), BoardSpaceState.OpponentPieceShort); game.AddActiveMove(Coord.Create(0, 0)); game.AddActiveMove(Coord.Create(0, 2)); GameController.ExecuteMoves(game); Assert.AreEqual(BoardSpaceState.None, game.GetPieceAt(Coord.Create(0, 1))); Assert.AreEqual(1, game.GetCapturedCount(BoardSpaceState.OpponentPieceShort)); }
public void Game_NothingCapturedToStart() { Game game = new Game(); Assert.AreEqual(0, game.GetCapturedCount(BoardSpaceState.OpponentPieceShort)); Assert.AreEqual(0, game.GetCapturedCount(BoardSpaceState.FriendlyPieceShort)); Assert.AreEqual(0, game.GetCapturedCount(BoardSpaceState.OpponentPieceTall)); Assert.AreEqual(0, game.GetCapturedCount(BoardSpaceState.FriendlyPieceTall)); }