Sandi Metz shares the rules she uses while writing unit tests. She compares units to capsules that you can send commands to and that can send queries to other units, remembering us of the command query separation pattern.