public void Assert(bool condition, string message) { if (!condition) { throw new NLogAssertException(message); } }