public void Avoids_Duplicate_Positioning()
        {
            Pawn firstPawn  = new Pawn(PieceColor.Black);
            Pawn secondPawn = new Pawn(PieceColor.Black);

            _chessBoard.Add(firstPawn, 6, 3, PieceColor.Black);
            _chessBoard.Add(secondPawn, 6, 3, PieceColor.Black);
            Assert.That(firstPawn.XCoordinate, Is.EqualTo(6));
            Assert.That(firstPawn.YCoordinate, Is.EqualTo(3));
            Assert.That(secondPawn.XCoordinate, Is.EqualTo(-1));
            Assert.That(secondPawn.YCoordinate, Is.EqualTo(-1));
        }
Exemplo n.º 2
0
 public void ChessBoard_Add_Sets_XCoordinate_Black()
 {
     _chessBoard.Add(_blackPawn, 6, 3);
     Assert.That(_blackPawn.XCoordinate, Is.EqualTo(6));
 }
Exemplo n.º 3
0
 public void ChessBoard_Add_Sets_XCoordinate()
 {
     _chessBoard.Add(_pawn, 6, 3, PieceColor.Black);
     Assert.That(_pawn.XCoordinate, Is.EqualTo(6));
 }