public void _10_takes_enemy_pawn_with_En_Passant() { _chessBoard.Add(_blackPawn, 2, 6); _chessBoard.Add(_whitePawn, 3, 4); _blackPawn.Move(2, 4); _whitePawn.Move(2, 5); Assert.That(_chessBoard.IsPieceAt(2, 5, _whitePawn)); Assert.That(!_chessBoard.IsPieceAt(2, 4, _blackPawn)); Assert.That(_chessBoard.CapturedBlackPieces.Contains(_blackPawn)); }
public void _02_making_an_illegal_move_by_placing_the_black_pawn_on_X_equals_6_and_Y_eqauls_3_and_moving_to_X_equals_7_and_Y_eqauls_3_should_not_move_the_pawn() { _chessBoard.Add(_blackPawn, 6, 3); _blackPawn.Move(7, 3); Assert.That(_blackPawn.XCoordinate, Is.EqualTo(6)); Assert.That(_blackPawn.YCoordinate, Is.EqualTo(3)); }