Question: With Test Driven Development or Test Driven Design, the first unit test you write for a method should FAIL, since you haven't written any code

With Test Driven Development or Test Driven Design, the first unit test you write for a method should FAIL, since you haven't written any code for the method. After this failing test you write code to just pass the test that failed. Once a test passes, you can clean up the code in the method as necessary. This TDD process is sometimes called "Red, Green, Refactor".

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!