Method EnumDebugLogActionsFromType
EnumDebugLogActionsFromType(Action<string, Action>, Type)
Enumerates and logs debug actions from the specified type, invoking a callback for each eligible method.
[Conditional("DEBUG")]
public static void EnumDebugLogActionsFromType(Action<string, Action> fn, Type type)
Parameters
fnAction<string, Action>A callback that receives the formatted name of each eligible method and an Action to invoke the method.
typeTypeThe type to inspect for static, public methods that start with "Test" and have no parameters.
Remarks
This method is only executed in debug builds. It identifies static, public methods in the specified type whose names start with "Test" and have no parameters. For each such method, the callback is invoked with the formatted method name (inserting a space after "Test") and an action that can be used to invoke the method.