Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 Delphi-Mocks 模拟一个带有返回记录的函数的类。TValue 和我的记录被报告为不兼容的类型。有什么办法可以用 WillExecute 或任何其他方式做到这一点?
发现:
myMock.Setup.WillReturnDefault('function_name', TValue.From(rec_variable));