“Test Driven Design” is another way to frame it.