Beispiel #1
0
 public static void Assert(bool Predicate, string Message = null)
 {
     if (!Predicate)
     {
         ErrorHandling.ErrorHandler(GetFailedAssertionMessage(Message));
         // This is mainly here so that code analysers can know that this method will never
         // 'return' in this case.
         throw new Exception("Invalid error handling in XFS4IoT Core - Error handler must never return");
     }
 }
Beispiel #2
0
 public static void Fail(string Message = null) => ErrorHandling.ErrorHandler(GetFailedAssertionMessage(Message));