Ejemplo n.º 1
0
 public void Mark(params object[] msgs)
 {
     System.Text.StringBuilder sb = new System.Text.StringBuilder();
     sb.Append(FLog.GetStamp(1));
     foreach (object o in msgs)
     {
         sb.Append(FLog.Bracketize(o));
     }
     Status(sb.ToString());
 }
Ejemplo n.º 2
0
        // ====================================================

        public static void Fail(string condition, object o, params object[] ctx)
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            sb.Append("ASSERT! ");
            sb.Append(FLog.GetStamp());
            sb.Append(FLog.Bracketize(condition));
            sb.Append(FLog.Bracketize(o));
            foreach (object co in ctx)
            {
                sb.Append(FLog.Bracketize(co));
            }
            FLog.LogError(sb.ToString());
#if RAISE_EXCEPTIONS
            throw new FAssertException(sb.ToString());
#endif
        }