Ineffective assistance of counsel (United States)
The Supreme Court tried to answer some of these questions in a case called Strickland v. Washington, .  In this case, the court ruled that there were two things a defendant would have to show in order to prove that they had ineffective assistance of counsel.  This became known as the "Strickland test":