-
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
verifyNoUnwantedInteractions only works when the user used expect. Clearly better candidates are verifyExpectations or the more verbose verifyExpectationsAreMet. That at least indicates that a when might not be enough.
(However, setting up a Scratch the latter, stubs or mocks can used just by passing them around.when (patch) indicates that you also use it, otherwise why would you set it up? For which we have verifyStubbedInvocationsAreUsed explicitly. Maybe rename that to the shorter verifyStubsAreUsed and also check if the mock is used at all, i.e. if len(theMock.invocations) > 0 which would be the inverse of verifyZeroInteractions?)
Metadata
Metadata
Assignees
Labels
No labels