Learning Test-Driven Development (TDD) by doing can be a challenging but rewarding experience. In the world of Umbraco, dealing with published content requires careful consideration of how to structure your tests effectively. A recent blog post highlights the importance of not mocking external dependencies and treating framework-specific components as an edge of your system. The author shares their own learning journey, starting with a test that was verbose and difficult to read, and ultimately refactoring it to be short and expressive. However, this process required significant plumbing work behind the scenes.
Source: https://dev.to/d_inventor/learning-tdd-by-doing-dealing-with-umbracos-published-content-400a