public void Assert(string condition, string message,Context context )
        {
            writer.WriteStartElement("AssertionFailed");

            foreach (IContextInfo c in context)
            {
                writer.WriteAttributeString(c.Name, c.Text);
            }

            writer.WriteElementString("Condition", condition);
            writer.WriteElementString("Message", message);

            writer.WriteEndElement();

            Flush();
        }
        public void BeginMessage(LogLevel level, Context context)
        {
            if (!inMessage)
            {
                writer.WriteStartElement(level.ToString());

                foreach (IContextInfo c in context)
                {
                    writer.WriteAttributeString(c.Name, c.Text);
                }

                Flush();

                inMessage = true;
            }
        }
        public void BeginMessage(LogLevel level, Context context)
        {
            currentNode = currentNode.Nodes.Add(level.ToString());

            if (level == LogLevel.Warning)
            {
                currentNode.BackColor = Color.Yellow;
            }
            else if (level == LogLevel.Error)
            {
                currentNode.BackColor = Color.Red;
            }

            foreach (IContextInfo c in context)
            {
                currentNode.Nodes.Add(c.Name + " : " + c.Text);
            }
        }
 public void Exception(Exception exception, bool mainThread,bool isTerminating,Context context )
 {
     throw new Exception("The method or operation is not implemented.");
 }
 public void Exception(Exception exception, bool mainThread, bool isTerminating, Context context)
 {
 }
 public void Assert(string condition, string message, Context context)
 {
 }
 public void BeginMessage(LogLevel level, Context context)
 {
     textWriter.WriteLine("{0}{1}:{2}", GetIndentString(),level, context);
     indentLevel++;
 }