Skip to content

InOrder Implementation #98

@cMancio00

Description

@cMancio00

Hello @kaste, as we discussed in in issue #97 there isn't an implementation for InOrder. I would like to implement it but I need your opinion.

I think we should be able write something like this:

in_order: inOrder = inOrder(first_mock, second_mock)
in_order.verify(first_mock.a_method())
in_order.verify(second_mock.other_method())

The idea is to use the in_order object as a container to remember the invocations during the test of differents mocks using the methods already implemented in verify and the data structure of Mock that remembers the invocations.

What do you think?

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