Skip to content

Mock: Never Called #256

@jonny-improbable

Description

@jonny-improbable

Is there any demand for adding a Never repeatability to allow you to write expectations like this:

s.myMock.On("MyMethod").Never()

My use-case if for testing that code does not get executed when returning early from a function (ie: when error handling) - however I am happy to accept this is unnecessary / leads to brittle tests if others feel so inclined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions