Exemple #1
0
 public static void WriteIf(bool condition, string message)
 {
     if (condition)
     {
         TraceImpl.Write(message);
     }
 }
Exemple #2
0
 public static void Assert(bool condition, string message, string detailMessage)
 {
     if (!condition)
     {
         TraceImpl.Fail(message, detailMessage);
     }
 }
Exemple #3
0
 public static void WriteLineIf(bool condition, object value)
 {
     if (condition)
     {
         TraceImpl.WriteLine(value);
     }
 }
Exemple #4
0
 public static void WriteLineIf(bool condition, object value, string category)
 {
     if (condition)
     {
         TraceImpl.WriteLine(value, category);
     }
 }
Exemple #5
0
 public static void Assert(bool condition, string message,
                           string detailMessageFormat, params object [] args)
 {
     TraceImpl.Assert(condition,
                      message,
                      string.Format(detailMessageFormat, args));
 }
Exemple #6
0
 public static void Assert(bool condition)
 {
     if (!condition)
     {
         TraceImpl.Fail(new StackTrace(true).ToString());
     }
 }
Exemple #7
0
 public static void WriteLineIf(bool condition, string message, string category)
 {
     if (condition)
     {
         TraceImpl.WriteLine(message, category);
     }
 }
Exemple #8
0
        static void DoTrace(string kind, Assembly report, string message)
        {
            string location = "";

            try{
                location = report.Location;
            } catch (MethodAccessException) {}

            TraceImpl.WriteLine(String.Format("{0} {1} : 0 : {2}", location, kind, message));
        }
Exemple #9
0
        private static void DoTrace(string kind, Assembly report, string message)
        {
            string arg = string.Empty;

            try
            {
                arg = report.Location;
            }
            catch (MethodAccessException)
            {
            }
            TraceImpl.WriteLine(string.Format("{0} {1} : 0 : {2}", arg, kind, message));
        }
Exemple #10
0
        public static void Assert(bool condition, string message,
                                  string detailMessageFormat, params object [] args)
        {
            if (condition)
            {
                // Return early to avoid the string formatting
                return;
            }

            TraceImpl.Assert(condition,
                             message,
                             string.Format(detailMessageFormat, args));
        }
Exemple #11
0
 internal static void Fail(string message)
 {
     TraceImpl.Fail(message);
 }
Exemple #12
0
 internal static void Close()
 {
     TraceImpl.Close();
 }
Exemple #13
0
 public static void Assert(bool condition, string message,
                           string detailMessage)
 {
     TraceImpl.Assert(condition, message, detailMessage);
 }
Exemple #14
0
 public static void Assert(bool condition)
 {
     TraceImpl.Assert(condition);
 }
Exemple #15
0
 internal static void Write(object value)
 {
     TraceImpl.Write(value);
 }
Exemple #16
0
 public static void Fail(string message)
 {
     TraceImpl.Fail(message);
 }
Exemple #17
0
 internal static void WriteLineIf(bool condition, object value,
                                  string category)
 {
     TraceImpl.WriteLineIf(condition, value, category);
 }
Exemple #18
0
 internal static void WriteLine(object value, string category)
 {
     TraceImpl.WriteLine(value, category);
 }
Exemple #19
0
 internal static void WriteLine(string message, string category)
 {
     TraceImpl.WriteLine(message, category);
 }
Exemple #20
0
 public static void WriteLine(object value)
 {
     TraceImpl.WriteLine(value);
 }
Exemple #21
0
 internal static void WriteIf(bool condition, string message)
 {
     TraceImpl.WriteIf(condition, message);
 }
Exemple #22
0
 internal static void Write(string message)
 {
     TraceImpl.Write(message);
 }
Exemple #23
0
 internal static void Indent()
 {
     TraceImpl.Indent();
 }
Exemple #24
0
 internal static void WriteLineIf(bool condition, string message,
                                  string category)
 {
     TraceImpl.WriteLineIf(condition, message, category);
 }
Exemple #25
0
 internal static void Flush()
 {
     TraceImpl.Flush();
 }
Exemple #26
0
 public static void Print(string message)
 {
     TraceImpl.WriteLine(message);
 }
Exemple #27
0
 public static void Close()
 {
     TraceImpl.Close();
 }
Exemple #28
0
 public static void Print(string format, params Object[] args)
 {
     TraceImpl.WriteLine(String.Format(format, args));
 }
Exemple #29
0
 internal static void WriteLineIf(bool condition, object value)
 {
     TraceImpl.WriteLineIf(condition, value);
 }
Exemple #30
0
 internal static void Unindent()
 {
     TraceImpl.Unindent();
 }