dunit.reflection

Internal reflection templates for implementing mocking behaviour.

License

MIT. See LICENSE for full details.

template DUnitMethodIterator(T, string generator, int index = 0) if (is(T == class) || is(T == interface))

Iterate through the methods of T generating code using the generator.

Parameters

T The class to inspect.
generator The template to use to generate code for each method.
index The beginning index of the members.

template DUnitConstructorIterator(T, string generator) if (is(T == class))

Iterate through the constructors of T generating code using the generator.

Parameters

T The class to inspect.
generator The template to use to generate code for each constructor.