private void InvariantAssert(bool condition, string message) { if (!condition) { throw new Exception("Assertion error: " + message); } }