When writing unit tests you repeatedly need to create the target object and all its dependencies. Whenever you modify constructor parameters list you need to modify your tests. Therefore maintaining tests with hard coded dependencies is painful and time consuming operation. AutoMock will create object where all its dependencies will be mocked and injected at run time.
Strona głównaSztuka programowania
Sztuka programowania 3578 dni, 5 godzin, 33 minuty temu 235 pokaż kod licznika zwiń