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 3548 dni, 1 godzinę, 45 minut temu 235 pokaż kod licznika zwiń