I'm starting to use FPCUnit and I don't know how to test the appearance of an exception. I understand that ExpectException or AssertException should be used but I don't know how to do it.
In the AssertException, you explicitly specify the method for performing testing and the class of exception that should occur in it.
You call an ExpectException before running a test, usually when developing a test class, for the same purpose.