Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

post factum verification #31

Open
belka-ew opened this issue Aug 17, 2022 · 0 comments
Open

post factum verification #31

belka-ew opened this issue Aug 17, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@belka-ew
Copy link
Collaborator

This feature would allow to record called void functions and check expectations afterwards.

Mocker mocker;
auto dependency = mocker.observe!Dependency;

// Execute
dependency.foo(5);
dependency.foo(6);

// Set expections
dependency.observe.foo(5);

// Verify
// foo(6) was never observed
@belka-ew belka-ew added the enhancement New feature or request label Aug 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant