public void CanFormatLogEntryWithIndexerProperties() { LogEntry logEntry = new LogEntryWithIndexer(); string xml = xmlLogFormatter.Format(logEntry); Assert.IsFalse(string.IsNullOrEmpty(xml)); XmlDocument xmlDocument = new XmlDocument(); xmlDocument.LoadXml(xml); Assert.IsNotNull(xmlDocument.FirstChild); }