Returning records in Delphi-Mocks

274 Views Asked by At

I would like to, using Delphi-Mocks, mock a class with a function returning a record. TValue and my record are reported as incompatible types. Is there any way I can do this with WillExecute or any other way?

1

There are 1 best solutions below

0
On

Found out:

myMock.Setup.WillReturnDefault('function_name', TValue.From(rec_variable));