Ejemplo n.º 1
0
 private static logEntriesLogEntry[] GetLogEntries(TestSession testSession)
 {
     var xmlLogEntries = new List<logEntriesLogEntry>();
     foreach (LogEntry logEntry in testSession.GetLogEntries())
     {
         var xmlLogEntry = new logEntriesLogEntry();
         xmlLogEntry.timestamp = logEntry.Timestamp;
         xmlLogEntry.message = logEntry.Message;
         xmlLogEntries.Add(xmlLogEntry);
     }
     return xmlLogEntries.Count == 0 ? null : xmlLogEntries.ToArray();
 }