public void CanFormatLogEntryWithWriteOnlyProperties()
 {
     LogEntry logEntry = new LogEntryWithWriteOnlyProperty();
     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 CanFormatLogEntryWithWriteOnlyProperties()
 {
     LogEntry logEntry = new LogEntryWithWriteOnlyProperty();
     string xml = xmlLogFormatter.Format(logEntry);
     Assert.IsFalse(string.IsNullOrEmpty(xml));
     XmlDocument xmlDocument = new XmlDocument();
     xmlDocument.LoadXml(xml);
     Assert.IsNotNull(xmlDocument.FirstChild);
 }