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); }
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); }