public override void Init(object instance, MethodBase method, object[] args) { if (null == method) { throw new ArgumentNullException("method"); } TestRecords.RecordInit(instance, method.DeclaringType.FullName + "." + method.Name, args.Length); }
public void Init(object instance, MethodBase method, object[] args) { if (null == method) { throw new ArgumentNullException("method"); } if (null == instance) { throw new ArgumentNullException("instance"); } var methodDeclaration = method.DeclaringType.Name + "." + method.Name + "(" + string.Join(", ", args.Select(a => a.GetType().Name)) + ")"; TestRecords.RecordInit(instance, methodDeclaration, args.Length); }