Skip to content

Check if Stub method is virtual/abstract on AssertWasCalled #6

@johnmwright

Description

@johnmwright

if a class method isn't virtual/abstract, or the class is sealed, then Fakes won't wire up the Stub to call the StubObserver. Try to detect this case and provide the user with an exception message that helps them know about the issue (ie: "Method must be virtual" instead of just a failure).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions