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