Vote UpVote

Spring4D presentation slides and more

The Delphi Geek – Slides and code for my Spring4D presentation are now online on the Presentations page.And to the participants of the workshop, here's the answer I promised.If you want to catch all calls to some function while mocking, you can pass in Arg.IsAny (or call some other function of the TArg type, defined in Spring.Mocking.Matching).I have added an example to the Mocking project.mockCalc.Setup.Returns(4).When.AddTwo(2);mockCalc.Setup.Executes(  function(const callInfo: TCallInfo): TValue  begin    lbLog.Items.Add('Don''t know how to handle ' + callInfo.Method.Name ...
Favorite? Off-Topic? Primož Gabrijelčič @ 2017-12-08 17:02


Visits: 4222
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)