re: You don't know TDD VIEW POST

FULL DISCUSSION
 

I don't like those type of tests, since the one you are talking about is tied to the implementation.

As you say that's good to put clear contracts between classes, but I don't see the purpose of that even when I think having clear interfaces is important.

Instead I prefer to test how each function answers with different parameters and edge cases.

Thanks for sharing and making me think about testing.

code of conduct - report abuse