Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Open Source Mocking framework for Delphi XE2 or later
branch: master

Merge pull request #58 from jensweigele/AllowRedefineOfBehavior

Added possiblity to allow redefinition of behaviors
Failed to load latest commit information.
Build Fixed build script.
DUnitXML @ e446bfb Updated DUnitXML submodule reference.
Tests Added possiblity to allow redefinition of behaviors (simply set "myMo…
.gitignore Fixed comparison when using Variant args. Was raising AV when trying …
.gitmodules Updated to include DUnit XML module.
Delphi.Mocks.Behavior.pas Fix for XE2 Update 2 where no self parameter is passed in to Invoke
Delphi.Mocks.Expectation.pas Fixed a bug, where an expectation like "....Between(0, 4)" failed, be…
Delphi.Mocks.Helpers.pas Major rework of implements functionality. Some tests not working, don…
Delphi.Mocks.Interfaces.pas TMock<T>.Implement<I>, TMock<T>.Setup<I>, TMock<T>.Instance<I>, and T…
Delphi.Mocks.MethodData.pas Added possiblity to allow redefinition of behaviors (simply set "myMo…
Delphi.Mocks.ObjectProxy.pas Major rework of implements functionality. Some tests not working, don…
Delphi.Mocks.Proxy.pas Added possiblity to allow redefinition of behaviors (simply set "myMo…
Delphi.Mocks.ReturnTypePatch.pas Added extra overload method for patching return types in Delphi XE5 a…
Delphi.Mocks.Utils.pas Fixed some failing tests
Delphi.Mocks.VirtualInterface.pas Fix for XE2 Update 2
Delphi.Mocks.VirtualMethodInterceptor.pas Fix for XE2 Update 2
Delphi.Mocks.WeakReference.pas Fix for include file that isn't present.
Delphi.Mocks.When.pas Major rework of implements functionality. Some tests not working, don…
Delphi.Mocks.inc Fix VERxxx typos for Delphi XE6 and XE7.
Delphi.Mocks.pas Added possiblity to allow redefinition of behaviors (simply set "myMo…
DelphiMocks.groupproj more fixes
LICENSE.txt updated readme and added license
README.md updated readme
Sample1.RES Started working on Stubs.. still need to improve .Utils.GetDefaultValue
Sample1.dpr Added sample test for Implement<I> and added exception for adding imp…
Sample1.dproj Added sample test for Implement<I> and added exception for adding imp…
Sample1Main.pas Started working on Stubs.. still need to improve .Utils.GetDefaultValue

README.md

Delphi Mocks

Delphi Mocks is a simple mocking framework for Delphi XE2 or later. It makes use of RTTI features that are only available in Delphi XE2, however I do hope to be able to get it working with earlier versions of Delphi (2010 or later) at some stage.

UPDATED : Now implements mocking on classes and interfaces.

TODO : More testing.

Something went wrong with that request. Please try again.