<NME> MyTraceListener.cs
<BEF> using System.Diagnostics;

public class MyTraceListener : TraceListener
{
    public string message;

    public override void Write(string message)
    {
        this.message = message;
    }

    public override void WriteLine(string message)
    {
        this.message = message;
    }
}

<MSG> dont write for empty constructors

<DFF> @@ -1,16 +1,18 @@
+using System.Collections.Generic;
 using System.Diagnostics;
 
 public class MyTraceListener : TraceListener
 {
-    public string message;
+    public List<string> messages = new List<string>();
 
     public override void Write(string message)
     {
-        this.message = message;
+        messages.Add(message);
     }
 
     public override void WriteLine(string message)
     {
-        this.message = message;
+        messages.Add(message);
+
     }
 }
\ No newline at end of file

dont write for empty constructors