Skip to content

onCall(...).withArgs(...) not allowed #28

@jonathan-benn

Description

@jonathan-benn

If you call this code:
stub.onCall(0).withArgs(42).returns("What's the meaning of life?")

It should raise an exception like the following:
Error: Defining a stub by invoking "stub.onCall(...).withArgs(...)" is not supported. Use "stub.withArgs(...).onCall(...)" to define sequential behavior for calls with certain arguments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions