A stub is a test double that returns values to the SUT.
A mock is a test double that a test uses to verify that the SUT correctly invokes a dependency.
Also, a mock is often a stub
A stub is a test double that returns values to the SUT.
A mock is a test double that a test uses to verify that the SUT correctly invokes a dependency.
Also, a mock is often a stub