It can reduce future maintenance efforts. Imagine we have to change how we construct Soundex objects (perhaps we need to be able to specify a language as an argument). Moving Soundex construction into the fixture means we would need to make our change in only one place, as opposed to making the change across several tests.
- Fixtures and Setup
- from Modern C++ Programming with Test-Driven Development
- Publisher: Pragmatic Bookshelf
- Released: October 2013
what if this is not always true - what if using the same setup is only incidental?
Share this highlighthttp://www.safaribooksonline.com/a/modern-c-programming/14118481/