Writing a GOOD Test in TDD
Lets recap Test Driven Development or TDD process.
RED- A new test will initially fail.
GREEN- We work to get the test to pass. In other words we write minimum code/business logic required to pass the test.
REFACTOR- We finally optimize our code/ business logic and run tests again.
So what should we consider when we write a test?
Each test should test one item of functionality only. This means test methods should normally have a single assert…