Skip to content

Missing .CoReturn method #325

@tripleslash

Description

@tripleslash

Hello, I want to co_return something from a mocked function. Something like:

// Instantiate a mock object.
Mock<SomeInterface> mock;

// Setup mock behavior.
When(Method(mock,foo)).CoReturn(1); // Method mock.foo will co_return 1 once.

But the CoReturn method does not exist. How can something like this be achieved?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions