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