public static void Assert(bool condition, string message) { if ( !condition ) throw new Exception("assertion failed: " + message); }