private static void Write(string description, string category) { Trace.WriteLine(description, category); #if UnitTest Log.Write("{0}: {1}", category, description); #else if (Tracer.writeToLogFile) { Tracer.WriteToFile(description, category); } #endif }