public void AddAttribute() { var entry = new LogEntry(DateTime.Now, "testmsg"); Assert.That(entry.HasAttribute(LogAttribute.ThreadID), Is.False); entry.AddAttribute(LogAttribute.ThreadID, "threadid"); Assert.That(entry.HasAttribute(LogAttribute.ThreadID), Is.True); }
public LogEntryBuilder And(LogAttribute attribute, object value) { entry.AddAttribute(attribute, value); return(this); }