The High Court has thrown out a claim by two asylum seekers who said they were illegally detained while their visa applications were being assessed. The case was a test of the limit of the High Court's ruling that indefinite immigration detention is not legal when there is not prospect of removal.