Developing to an interface with TDD
问题 I'm a big fan of TDD and use it for the vast majority of my development these days. One situation I run into somewhat frequently, though, and have never found what I thought was a "good" answer for, is something like the following (contrived) example. Suppose I have an interface, like this (writing in Java, but really, this applies to any OO language): public interface PathFinder { GraphNode[] getShortestPath(GraphNode start, GraphNode goal); int getShortestPathLength(GraphNode start,