Emergence Necessitates Mocking | Code Walks 044
Автор: Christopher Okhravi
Загружено: 2016-10-16
Просмотров: 1489
Описание:
When to mock and when to not mock? While I don't have a single answer to rule em all, I confidently believe this: When you don't know the outcome -- you simply have to mock. Because if you can't test output, you have to test interactions, But if your method is query (i.e. it returns something) and not only a command (i.e. it mutates state) then we should sensibly want to test the return value and not merely the interactions. But since we don't know what it will return we have to mock and assert over mocks.
Classicist vs Mockist Testing
• Classicist vs Mockist Testing | Code Walks...
Unit vs Integration Testing
• Unit vs Integration testing — what's the d...
GEAR USED
► CAMERA: Canon 70D http://amzn.to/29wR8wG
► LENS: Canon 10-18mm http://amzn.to/29srabL
► TRIPOD: JOBY Gorillapod Zoom http://amzn.to/29AdkHT
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: