Delphi-Mocks
Delphi-Mocks copied to clipboard
A Open Source Mocking framework for Delphi XE2 or later
If try to call mocked safecall method, this call corrupts stack, and after several calls it leads to unpredictable exceptions. Code for reproducing: ``` pascal program TestStackError; {$APPTYPE CONSOLE} uses...
I'd like to make some contribution to Delphi Mock - I think that docs could be a little more expanded. Any feedback on that?
Today I noticed that I am still using a *really* old version of Delphi Mocks (must be from ~2014 :innocent:), so I decided to update. Alas, one of my tests...
Added fix for comparing records using a custom comparer that can be registered for use with the TValueHelper.CompareValue routine. Although I added this with the intention of using it for...
I have started using Delphi-Mocks to help unit test a development that makes heavy use of records as input parameters. I created a TMock of one of the interfaces and...
After a test case, before the `TearDown` method, a exception EInvalidPointer with message 'Invalid pointer operation' is raised. The debugger show that a mock is being destroyed in `TObjectProxy.Destroy`. The...
Project has a copy of VSoft.WeakReference - use the dpm package instead.
I have a method (function) that has two arguments and returns an integer. The first argument is passed by value and the second by reference (var). I would like to...
Currently if the following class is used for mocking; ``` Delphi type TMyClass = class(TObject) function NonVirtualFunc : boolean; end; ``` If the caller for TMock specifies a behavior or...
We recently upated the version of Delphi-Mocks we where using and with this version it looks like we can not define differen behaviour for overloaded functions. ``` IMockIntf = interface(IInvokable)...