I made the following suggestion to the Delphi Mocks project.

I made the following suggestion to the Delphi Mocks project.  

Thoughts?

https://github.com/VSoftTechnologies/Delphi-Mocks/issues/13
https://github.com/VSoftTechnologies/Delphi-Mocks/issues/13

Comments

  1. In DSharp you can switch the mode between mock and stub which I found easier to handle than having two different types (Stub and Mock) that do almost the same (basically a stub is just a mock that has no behaviours and does not complain on calls that were not expected)

    Vincent Parrett TValue.Make(nil, rttiType.Handle, Result) is what you were looking for.

    ReplyDelete

Post a Comment