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);
 }
Ejemplo n.º 2
0
 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);
 }