Playground for using Approval Tests with Rhino Mocks inputs for characterization tests.
I am using this as a proof of concept. This is the idea:
- Take existing legacy code
- Make dependencies mockable
- Use Approval Tests combination approvals to quickly generate characterization tests close to 100% coverage
- Refactor like crazy, especially to break into smaller classes with their own unit tests
- Throw away characterization tests?
- Profit
Note this was put together using MonoDevelop for demo purposes.