public 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 int ReturnsNumber() { try { using (var fs = new MemoryStream()) { TestRecords.RecordBody("ReturnsNumber"); return(42); } } catch (Exception) { // do nothing return(40); } finally { IncrementFinally(); } }
public void OnException(Exception exception) { TestRecords.RecordOnException(exception.GetType(), exception.Message); }
public void OnExit() { TestRecords.RecordOnExit(); }
public void OnEntry() { TestRecords.RecordOnEntry(); }