Ejemplo n.º 1
0
        public void Verify_InvalidDataForMoveWithNoOtherPieces_ReturnsFalse(int finalDestinationColumn, int finalDestinationRow)
        {
            IChessPiece King = new King(0, 5, 5);

            IChessMoveVerifier KingMoveVerifier = new KingMoveVerifier();

            var result = KingMoveVerifier.Verify(King, finalDestinationColumn, finalDestinationRow);

            Assert.False(result);
        }
Ejemplo n.º 2
0
        public void Verify_KingAttacksSameColor_ReturnsFalse(int finalDestinationColumn, int finalDestinationRow)
        {
            IChessPiece        King        = new King(0, 5, 5);
            List <IChessPiece> otherPieces = new List <IChessPiece>();

            otherPieces.Add(new King(0, finalDestinationColumn, finalDestinationRow));

            IChessMoveVerifier KingMoveVerifier = new KingMoveVerifier();

            var result = KingMoveVerifier.Verify(King, finalDestinationColumn, finalDestinationRow, otherPieces);

            Assert.False(result);
        }