Strona głównaSztuka programowania

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..

Źródło: blog.kateo.pl
Dziel się z innymi:
[EN] Unit testing private methods with PrivateObject and PrivateType | blog.kateo.pl

Sztuka programowania 3869 dni, 22 godziny, 34 minuty temu blog-kateo-pl 117 pokaż kod licznika zwiń

Wczytywanie artykułów...