public void ProxyXmlLogEntryData() { XmlLogEntry entry = CommonUtil.CreateXmlLogEntry(); int eventId = 1; entry.EventId = eventId; entry.Categories.Add(CommonUtil.ServiceModelCategory); proxy.TraceData(new TraceEventCache(), CommonUtil.ServiceModelCategory, TraceEventType.Error, eventId, entry); Assert.IsTrue(MockTraceListener.LastEntry is XmlLogEntry); XmlLogEntry lastEntry = MockTraceListener.LastEntry as XmlLogEntry; Assert.IsNotNull(lastEntry); CommonUtil.AssertXmlLogEntries(lastEntry, entry); }