Are you writing valuable tests (2025 edition)?
summary
Defines four concrete properties of valuable tests: protection against regressions, resistance to refactoring, fast feedback and maintainability, and shows C#/.NET examples using xUnit, Moq, Verify (snapshot testing), FluentAssertions and hand‑written fakes. Demonstrates a shopping‑cart and customer‑service scenario, compares mocks vs fakes, shows test data builders and static factory methods, and warns snapshots cause fragility. Claims prioritize maintainability and refactor resistance, tolerates less than 100% coverage (often 5–15% short), and proves the patterns work in live examples.
AI-written summary · about
related talks
59mPragmatic unit testing
01h 01mRaising the Value of Your Unit Tests
01h 05mMicrotesting
39mIdentifying and Testing Details That Matter Using Automated Tests
44mTesting the untestable - patterns and use cases analysis
37mClean Test Code
47mThe Valley of Success
30mRefactoring and Test Fakes: Crafting Resilient Code with Confidence
