A clock double returns 10 whenever its hour method is called. Which role does that chosen response serve?
A test substitutes a controlled object for its database dependency. What is the substituted object?
A mock can support checking which calls a dependency received.
Circle one: True False
The contract requires requesting user 73 from a database dependency. Which check directly tests that required interaction?
Greeting logic reads the current hour. Which seam lets the test choose that hour while still testing the greeting logic?
A test asserts that a private helper named load_row was called. The helper is renamed and public behaviour stays the same. Why can this assertion fail?
Ana substitutes a mock configured to return a chosen network response. She checks the final user message, not recorded calls. What role does the double serve here?
Application code receives a database dependency, and tests supply a compatible double. What does this design establish?