예제 #1
0
 public static void WriteIf(bool condition, string message)
 {
     if (condition)
     {
         TraceImpl.Write(message);
     }
 }
예제 #2
0
 public static void Assert(bool condition, string message, string detailMessage)
 {
     if (!condition)
     {
         TraceImpl.Fail(message, detailMessage);
     }
 }
예제 #3
0
 public static void WriteLineIf(bool condition, object value)
 {
     if (condition)
     {
         TraceImpl.WriteLine(value);
     }
 }
예제 #4
0
 public static void WriteLineIf(bool condition, object value, string category)
 {
     if (condition)
     {
         TraceImpl.WriteLine(value, category);
     }
 }
예제 #5
0
 public static void Assert(bool condition, string message,
                           string detailMessageFormat, params object [] args)
 {
     TraceImpl.Assert(condition,
                      message,
                      string.Format(detailMessageFormat, args));
 }
예제 #6
0
 public static void Assert(bool condition)
 {
     if (!condition)
     {
         TraceImpl.Fail(new StackTrace(true).ToString());
     }
 }
예제 #7
0
 public static void WriteLineIf(bool condition, string message, string category)
 {
     if (condition)
     {
         TraceImpl.WriteLine(message, category);
     }
 }
예제 #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));
        }
예제 #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));
        }
예제 #10
0
파일: Debug.cs 프로젝트: szafranr/mono
        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));
        }
예제 #11
0
 internal static void Fail(string message)
 {
     TraceImpl.Fail(message);
 }
예제 #12
0
 internal static void Close()
 {
     TraceImpl.Close();
 }
예제 #13
0
 public static void Assert(bool condition, string message,
                           string detailMessage)
 {
     TraceImpl.Assert(condition, message, detailMessage);
 }
예제 #14
0
 public static void Assert(bool condition)
 {
     TraceImpl.Assert(condition);
 }
예제 #15
0
 internal static void Write(object value)
 {
     TraceImpl.Write(value);
 }
예제 #16
0
파일: Debug.cs 프로젝트: szafranr/mono
 public static void Fail(string message)
 {
     TraceImpl.Fail(message);
 }
예제 #17
0
 internal static void WriteLineIf(bool condition, object value,
                                  string category)
 {
     TraceImpl.WriteLineIf(condition, value, category);
 }
예제 #18
0
 internal static void WriteLine(object value, string category)
 {
     TraceImpl.WriteLine(value, category);
 }
예제 #19
0
 internal static void WriteLine(string message, string category)
 {
     TraceImpl.WriteLine(message, category);
 }
예제 #20
0
 public static void WriteLine(object value)
 {
     TraceImpl.WriteLine(value);
 }
예제 #21
0
 internal static void WriteIf(bool condition, string message)
 {
     TraceImpl.WriteIf(condition, message);
 }
예제 #22
0
 internal static void Write(string message)
 {
     TraceImpl.Write(message);
 }
예제 #23
0
 internal static void Indent()
 {
     TraceImpl.Indent();
 }
예제 #24
0
 internal static void WriteLineIf(bool condition, string message,
                                  string category)
 {
     TraceImpl.WriteLineIf(condition, message, category);
 }
예제 #25
0
 internal static void Flush()
 {
     TraceImpl.Flush();
 }
예제 #26
0
 public static void Print(string message)
 {
     TraceImpl.WriteLine(message);
 }
예제 #27
0
파일: Debug.cs 프로젝트: szafranr/mono
 public static void Close()
 {
     TraceImpl.Close();
 }
예제 #28
0
 public static void Print(string format, params Object[] args)
 {
     TraceImpl.WriteLine(String.Format(format, args));
 }
예제 #29
0
 internal static void WriteLineIf(bool condition, object value)
 {
     TraceImpl.WriteLineIf(condition, value);
 }
예제 #30
0
 internal static void Unindent()
 {
     TraceImpl.Unindent();
 }