dunit.mockable

Mixin template to enable mocking.

Many methods implement compile-time parameters (file, line) that are set at the call site. It is preferred that these parameters are ignored when using these methods.

Members

Mixin templates

Mockable
mixin template Mockable(C)

A template mixin used to inject code into a class to provide mockable behaviour. Code is nested within the host class to provide access to all host types. Only injects code when using the -unittest compiler switch.

Meta

License

MIT. See LICENSE for full details.