VSoftTechnologies / Delphi-Mocks

A Open Source Mocking framework for Delphi XE2 or later
Apache License 2.0
229 stars 108 forks source link

Call original virtual method if the parameters does not match #135

Closed Laurensvanrun closed 3 years ago

Laurensvanrun commented 3 years ago

If you call a virtual method that has behavior defined, but the parameters does not match, it will cause undefined behavior due to the fact that the original (virtual) method is not invoked AND no default value is returned (or exception is raised).

From now on we call the original base method if the parameters does not match. This is the same behavior as Moq does in C#.

Laurensvanrun commented 3 years ago

@vincentparrett: can you please merge this change?