public void SetUp() { _chessBoard = new ChessBoard(); _blackBishop = new Bishop(PieceColor.Black, _chessBoard); _whiteRook = new Rook(PieceColor.White, _chessBoard); _whitePawn = new WhitePawn(_chessBoard); _blackKing = new BlackKing(_chessBoard); _whiteKing = new WhiteKing(_chessBoard); _blackPawn = new BlackPawn(_chessBoard); _chessBoard.Add(_blackKing, 4, 7); _chessBoard.Add(_whiteKing, 4, 0); }
public void SetUp() { _chessBoard = new ChessBoard(); _blackBishop = new Bishop(PieceColor.Black, _chessBoard); _whiteQueen = new Queen(PieceColor.White, _chessBoard); _whiteKnight = new Knight(PieceColor.White, _chessBoard); _blackPawn = new BlackPawn(_chessBoard); _blackKing = new BlackKing(_chessBoard); _whiteKing = new WhiteKing(_chessBoard); _chessBoard.Add(_blackKing, 4, 7); _chessBoard.Add(_whiteKing, 4, 0); }
protected override void Given() { base.Given(); PieceColor = PieceColor.Black; XCoordinate = 6; YCoordinate = 3; Pawn = new Pawn(PieceColor); ChessBoard.Add(Pawn, XCoordinate, YCoordinate, PieceColor); }
public void _01_placing_it_on_X_equals_4_and_Y_equals_5_should_place_it_on_that_place_on_the_board() { _chessBoard.Add(_blackQueen, 4, 5); Assert.That(_blackQueen.XCoordinate, Is.EqualTo(4)); Assert.That(_blackQueen.YCoordinate, Is.EqualTo(5)); }
public void _01_placing_the_black_pawn_on_X_equals_6_and_Y_equals_3_should_place_the_black_pawn_on_that_place_on_the_board() { _chessBoard.Add(_blackPawn, 6, 3); Assert.That(_blackPawn.XCoordinate, Is.EqualTo(6)); Assert.That(_blackPawn.YCoordinate, Is.EqualTo(3)); }
public void _01_placing_the_white_pawn_on_X_equals_6_and_Y_equals_1_should_place_the_white_pawn_on_that_place_on_the_board() { _chessBoard.Add(_whitePawn, 6, 1); Assert.That(_whitePawn.XCoordinate, Is.EqualTo(6)); Assert.That(_whitePawn.YCoordinate, Is.EqualTo(1)); }
public void _01_placing_the_black_king_on_X_equals_3_and_Y_equals_3_should_place_the_black_king_on_that_place_on_the_board() { _chessBoard.Add(_blackKing, 3, 3); Assert.That(_blackKing.XCoordinate, Is.EqualTo(3)); Assert.That(_blackKing.YCoordinate, Is.EqualTo(3)); }
public void When_AddingPawn() { ChessBoard.Add(Pawn, XCoordinate, YCoordinate, PieceColor); Assert.That(Pawn.XCoordinate, Is.EqualTo(6)); Assert.That(Pawn.YCoordinate, Is.EqualTo(1)); }
public void _01_placing_it_on_X_equals_3_and_Y_equals_3_should_place_the_bishop_on_that_place_on_the_board() { _chessBoard.Add(_whiteBishop, 3, 3); Assert.That(_whiteBishop.XCoordinate, Is.EqualTo(3)); Assert.That(_whiteBishop.YCoordinate, Is.EqualTo(3)); }