文件名称:Delphi-Mocks:Delphi XE2 或更高版本的开源模拟框架
文件大小:197KB
文件格式:ZIP
更新时间:2024-06-20 08:21:00
delphi mocking-framework dpmpackage Pascal
德尔福模拟 Delphi Mocks 是一个用于 Delphi XE2 或更高版本的简单模拟框架。 它利用了仅在 Delphi XE2 中可用的 RTTI 功能,但我确实希望能够在某个阶段使其与早期版本的 Delphi(2010 或更高版本)一起使用。 例子 unit Delphi.Mocks.Examples.Interfaces; interface uses SysUtils, DUnitX.TestFramework, Delphi.Mocks; type { $M+ } TSimpleInterface = Interface [ ' {4131D033-2D80-42B8-AAA1-3C2DF0AC3BBD} ' ] procedure SimpleMethod ; end ; TSystemUnderTestInf = Inter
【文件预览】:
Delphi-Mocks-master
----.gitmodules(64B)
----Examples()
--------Delphi.Mocks.Examples.Objects.pas(1KB)
--------Delphi.Mocks.Examples.Implement.pas(4KB)
--------Delphi.Mocks.Example.ProjectSaveCheckVisitor.pas(2KB)
--------Sample1.dpr(639B)
--------Delphi.Mocks.Examples.Matchers.pas(2KB)
--------Sample1Main.pas(6KB)
--------Delphi.Mocks.Examples.Interfaces.pas(2KB)
--------Sample1.dproj(26KB)
--------Delphi.Mocks.Examples.Factory.pas(7KB)
----.gitignore(551B)
----VSoft.DelphiMocks.dspec(2KB)
----Source()
--------Delphi.Mocks.inc(10KB)
--------Delphi.Mocks.Behavior.pas(7KB)
--------Delphi.Mocks.AutoMock.pas(2KB)
--------Delphi.Mocks.Expectation.pas(14KB)
--------Delphi.Mocks.ObjectProxy.pas(5KB)
--------Delphi.Mocks.Helpers.pas(8KB)
--------Delphi.Mocks.Interfaces.pas(7KB)
--------Delphi.Mocks.pas(28KB)
--------Delphi.Mocks.Proxy.TypeInfo.pas(24KB)
--------Delphi.Mocks.Proxy.pas(31KB)
--------Delphi.Mocks.Utils.pas(5KB)
--------Delphi.Mocks.When.pas(2KB)
--------Delphi.Mocks.ReturnTypePatch.pas(6KB)
--------Delphi.Mocks.VirtualInterface.pas(2KB)
--------Delphi.Mocks.Validation.pas(2KB)
--------Delphi.Mocks.MethodData.pas(25KB)
--------Delphi.Mocks.VirtualMethodInterceptor.pas(543B)
--------Delphi.Mocks.WeakReference.pas(10KB)
--------Delphi.Mocks.ParamMatcher.pas(5KB)
----Tests()
--------Delphi.Mocks.Utils.Tests.pas(904B)
--------Delphi.Mocks.Tests.Stubs.pas(1KB)
--------Delphi.Mocks.Tests.Utils.pas(3KB)
--------Delphi.Mocks.Tests.Behavior.pas(8KB)
--------Delphi.Mocks.Tests.Interfaces.pas(5KB)
--------Delphi.Mocks.Examples.Objects.pas(1KB)
--------Delphi.Mocks.Tests.OpenArrayIntf.pas(2KB)
--------Delphi.Mocks.Tests.TValue.pas(235B)
--------Delphi.Mocks.Tests.AutoMock.pas(2KB)
--------Delphi.Mocks.Tests.MethodData.pas(5KB)
--------Delphi.Mocks.Examples.Implement.pas(4KB)
--------Delphi.Mocks.Tests.dproj(21KB)
--------Delphi.Mocks.Tests.dpr(5KB)
--------Delphi.Mocks.Tests.InterfaceProxy.pas(8KB)
--------MemoryLeakTest()
--------Delphi.Mocks.Examples.Matchers.pas(5KB)
--------Delphi.Mocks.Tests.ProxyBase.pas(499B)
--------.gitignore(260B)
--------Delphi.Mocks.Tests.ObjectProxy.pas(6KB)
--------Delphi.Mocks.Tests.Expectations.pas(14KB)
--------Delphi.Mocks.Tests.Base.pas(16KB)
--------Delphi.Mocks.Examples.Factory.pas(7KB)
--------Delphi.Mocks.Tests.Proxy.pas(616B)
--------Delphi.Mocks.Tests.Objects.pas(1KB)
--------Delphi.Mocks.Tests.res(1KB)
----Build()
--------TestAndBuild.fbp7(68KB)
--------TestAndBuild.fbp8(12KB)
----README.md(2KB)
----LICENSE.txt(11KB)