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(); }