Пример #1
0
 /// <summary>
 /// Run the PreAction() method of the IAction
 /// </summary>
 /// <param name="?"></param>
 /// <param name="action"></param>
 /// <returns></returns>
 public IAction PreAction(WTest wTestObject, IAction action)
 {
     try
     {
         action.PreAction();
     }
     catch (Exception ex)
     {
         wTestObject.Success = false;
         wTestObject.Message = ex.Message;
         if (ex.InnerException != null)
         {
             wTestObject.Message += ": " + ex.InnerException.Message;
         }
     }
     return action;
 }