Test Case is written by members of the Quality Assurance (QA) team or the Testing team. There is no special way or different way to write a Test Case in an Agile project.