How to make sure your case studies have happy endings.