5 Comments

It is always better to follow such rules:

- use real code for system's under test dependencies

- if not possible, replace it with test double (like in-memory database)

- if not possible, replace it with mock object

- never test behaviour (method X was invoked), test state or returned result

Expand full comment

What are some example unit test names? I am not clearly understanding the name format but examples would definitely help

Expand full comment