Checks are tested after every move and you will know the result before
it's is your turn. Now you can checkmate your opponent