Red, Green, Refactor workflow

Question:
What is the Red, Green, Refactor workflow?

  1. Ensuring that no one can call the code (red), then deciding how you want to call the code (green)
  2. Writing a failing test case (red), then writing enough code to make the unit test pass (green)
  3. Writing code first (red), then writing a test for it (green)
  4. Avoiding code failure (red) by writing the most refined, error-free code (green)
Answer:
B - is the correct answer. The Red, Green, Refactor workflow is outputting failing test cases in red and passing test cases in green