Most languages have built-in assertions, but they don't … I usually prefer to implement my own assertion … [e.g., with static methods such as Assert.true(bool, message), Assert.notNull(ref), Assert.cantReach(message), Assert.impossibleException(exception, message)].
Google-1
Google-2
Copyright clearance needed for quotation.