There are a lot of discussions in the Internet about the sense of testing the code with private accessors. In my opinion all of the discussions coming from the wrong understanding of the topic. What is unit testing? It is a testing of units, not classes, not methods exposed by some API. The term private is supposed to be private to the consumer, not to unit tests. Let's have a look at it closer..
Strona głównaSztuka programowania
Sztuka programowania 3869 dni, 22 godziny, 34 minuty temu 117 pokaż kod licznika zwiń