What if we applied TDD to our test examples in Section 3, Designing and Building Automated Tests for Microsoft Dynamics 365 Business Central?
To be honest, it wouldn't have looked much different, as a lot of the TDD principles were implicitly exercised as follows:
- By defining our customer wishes by means of the ATDD scenarios, we created ourselves a sufficient set of tests, that is, a test list
- By implementing our tests with the four steps recipe, we did the following:
- We took small steps
- We created a structure for each test based on the GIVEN-WHEN-THEN tags
- We constructed the real code to get it to work
- We ran the test, and if red, we adjusted the code till the test passed, that is green
- And even though not worked out in the test examples as such, as discussed at the end of Chapter 7, From Customer Wish to Test Automation - And Some More, I...