The comment that I replied to was about using assertions instead of tests.
You can certainly write an assertion and test it after, but unless it is absolutely necessary I would prefer to avoid polluting the code with "documentation".
The right place for that is in the unit tests, not in the middle of production code.