Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Even with 100% code coverage you can still encounter non-obvious code paths that aren't tested, such as overflow conditions. Commented Nov 28, 2016 at 22:49
  • 3
    This sentence says it all: It is all about what is the expected behavior of your class from the perspective of the rest of the system. Unit testing and TDD made more sense to me when I stopped thinking about testing methods and instead tested behaviors. Commented Nov 28, 2016 at 22:55